From e7ddaa9285fc5e6433a1faed0bf0a426d34d596a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Tue, 19 Apr 2016 08:02:57 -0700 Subject: [PATCH] [ios] Assert that defaults change is on main thread --- platform/ios/src/MGLMapboxEvents.m | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m index 0967257bf..681b95b87 100644 --- a/platform/ios/src/MGLMapboxEvents.m +++ b/platform/ios/src/MGLMapboxEvents.m @@ -240,6 +240,7 @@ const NSTimeInterval MGLFlushInterval = 180; } - (void)userDefaultsDidChange:(NSNotification *)notification { + MGLAssertIsMainThread(); [self pauseOrResumeMetricsCollectionIfRequired]; }