summaryrefslogtreecommitdiff
path: root/platform/ios
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2017-01-25 13:38:37 -0800
committerGitHub <noreply@github.com>2017-01-25 13:38:37 -0800
commit5dc83903d66afcb900d1363abc125a086f61384e (patch)
tree625e69435a7fc5cf7c20f6b9f73d7edac06fa295 /platform/ios
parent1b6a4c60d709decfdc59d5a4c2a9fb6c953a9d6b (diff)
downloadqtlocation-mapboxgl-5dc83903d66afcb900d1363abc125a086f61384e.tar.gz
fixes #6688: assert remaining map view notification responses are main thread (#7838)
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/src/MGLMapView.mm4
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();
}