summaryrefslogtreecommitdiff
path: root/platform/ios
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-04-19 08:02:57 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-04-19 08:02:57 -0700
commite7ddaa9285fc5e6433a1faed0bf0a426d34d596a (patch)
tree859977d37625a21069681dead6bc9233b3909a18 /platform/ios
parentd76ef6e53b56d163df823e7970e18cafd402bbb3 (diff)
downloadqtlocation-mapboxgl-e7ddaa9285fc5e6433a1faed0bf0a426d34d596a.tar.gz
[ios] Assert that defaults change is on main thread
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/src/MGLMapboxEvents.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m
index 0967257bfd..681b95b875 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];
}