[ios] Assert that defaults change is on main thread
This commit is contained in:
committed by
Minh Nguyễn
parent
d76ef6e53b
commit
e7ddaa9285
@@ -240,6 +240,7 @@ const NSTimeInterval MGLFlushInterval = 180;
|
||||
}
|
||||
|
||||
- (void)userDefaultsDidChange:(NSNotification *)notification {
|
||||
MGLAssertIsMainThread();
|
||||
[self pauseOrResumeMetricsCollectionIfRequired];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user