Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed May 2, 2018
1 parent 1c22374 commit 60ac08a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions platform/darwin/src/MGLOfflinePack.mm
Original file line number Diff line number Diff line change
Expand Up @@ -227,22 +227,22 @@ - (void)didReceiveMaximumAllowedMapboxTiles:(uint64_t)limit {
@end

void MBGLOfflineRegionObserver::statusChanged(mbgl::OfflineRegionStatus status) {
__weak MBGLOfflinePack *_pack = pack;
__weak MGLOfflinePack *weakPack = pack;
dispatch_async(dispatch_get_main_queue(), ^{
[_pack offlineRegionStatusDidChange:status];
[weakPack offlineRegionStatusDidChange:status];
});
}

void MBGLOfflineRegionObserver::responseError(mbgl::Response::Error error) {
__weak MBGLOfflinePack *_pack = pack;
__weak MGLOfflinePack *weakPack = pack;
dispatch_async(dispatch_get_main_queue(), ^{
[_pack didReceiveError:MGLErrorFromResponseError(error)];
[weakPack didReceiveError:MGLErrorFromResponseError(error)];
});
}

void MBGLOfflineRegionObserver::mapboxTileCountLimitExceeded(uint64_t limit) {
__weak MBGLOfflinePack *_pack = pack;
__weak MGLOfflinePack *weakPack = pack;
dispatch_async(dispatch_get_main_queue(), ^{
[_pack didReceiveMaximumAllowedMapboxTiles:limit];
[weakPack didReceiveMaximumAllowedMapboxTiles:limit];
});
}

0 comments on commit 60ac08a

Please sign in to comment.