fixes #6688: assert remaining map view notification responses are main thread (#7838)

This commit is contained in:
Justin R. Miller
2017-01-25 13:38:37 -08:00
committed by GitHub
parent 1b6a4c60d7
commit 5dc83903d6

View File

@@ -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();
}