diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-04-19 08:02:57 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-04-19 08:02:57 -0700 |
commit | e7ddaa9285fc5e6433a1faed0bf0a426d34d596a (patch) | |
tree | 859977d37625a21069681dead6bc9233b3909a18 /platform/ios | |
parent | d76ef6e53b56d163df823e7970e18cafd402bbb3 (diff) | |
download | qtlocation-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.m | 1 |
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]; } |