[ios] Assert that defaults change is on main thread

This commit is contained in:
Minh Nguyễn
2016-04-19 08:02:57 -07:00
committed by Minh Nguyễn
parent d76ef6e53b
commit e7ddaa9285

View File

@@ -240,6 +240,7 @@ const NSTimeInterval MGLFlushInterval = 180;
}
- (void)userDefaultsDidChange:(NSNotification *)notification {
MGLAssertIsMainThread();
[self pauseOrResumeMetricsCollectionIfRequired];
}