diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2017-01-25 13:38:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-25 13:38:37 -0800 |
commit | 5dc83903d66afcb900d1363abc125a086f61384e (patch) | |
tree | 625e69435a7fc5cf7c20f6b9f73d7edac06fa295 | |
parent | 1b6a4c60d709decfdc59d5a4c2a9fb6c953a9d6b (diff) | |
download | qtlocation-mapboxgl-5dc83903d66afcb900d1363abc125a086f61384e.tar.gz |
fixes #6688: assert remaining map view notification responses are main thread (#7838)
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index acc6a3f13c..db86f59a57 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -641,6 +641,8 @@ public: - (void)reachabilityChanged:(NSNotification *)notification { + MGLAssertIsMainThread(); + MGLReachability *reachability = [notification object]; if ( ! _isWaitingForRedundantReachableNotification && [reachability isReachable]) { @@ -707,6 +709,8 @@ public: - (void)didReceiveMemoryWarning { + MGLAssertIsMainThread(); + _mbglMap->onLowMemory(); } |