From 5dc83903d66afcb900d1363abc125a086f61384e Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 25 Jan 2017 13:38:37 -0800 Subject: [PATCH] fixes #6688: assert remaining map view notification responses are main thread (#7838) --- platform/ios/src/MGLMapView.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index acc6a3f13..db86f59a5 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(); }