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-20 14:43:57 -0700
commit302f69fdedada6e120e211b12c565bdc8c517609 (patch)
tree65842b5aa69776f79a645339a29d9efd6fef35f6 /platform/ios
parente5fa7093daf8d93800a06e6ce39c451ea8943e30 (diff)
downloadqtlocation-mapboxgl-302f69fdedada6e120e211b12c565bdc8c517609.tar.gz
[ios] Assert that defaults change is on main thread
Cherry-picked from e7ddaa9285fc5e6433a1faed0bf0a426d34d596a.
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 9300953519..929a9616d6 100644
--- a/platform/ios/src/MGLMapboxEvents.m
+++ b/platform/ios/src/MGLMapboxEvents.m
@@ -236,6 +236,7 @@ const NSTimeInterval MGLFlushInterval = 180;
}
- (void)userDefaultsDidChange:(NSNotification *)notification {
+ MGLAssertIsMainThread();
[self pauseOrResumeMetricsCollectionIfRequired];
}