diff options
author | Randall Lee <randall.lee@mapbox.com> | 2018-05-22 15:10:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 15:10:52 -0400 |
commit | 8a02fa42ecfb959a8958ccf414b5b8564c6d4d85 (patch) | |
tree | 69d3e1e6e9c95fe6e60c2016a77302d51a66e5d6 /platform/darwin | |
parent | ba07c873aa2c4bd8ef1b185660f6feeb4b12483e (diff) | |
download | qtlocation-mapboxgl-8a02fa42ecfb959a8958ccf414b5b8564c6d4d85.tar.gz |
[ios] Run MGLMapboxEvents setup asynchronously (#11784)
* [ios] Run MGLMapboxEvents setup asynchronously
Diffstat (limited to 'platform/darwin')
-rw-r--r-- | platform/darwin/src/MGLAccountManager.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLAccountManager.m b/platform/darwin/src/MGLAccountManager.m index 73da8ddd63..13cbebf9fd 100644 --- a/platform/darwin/src/MGLAccountManager.m +++ b/platform/darwin/src/MGLAccountManager.m @@ -64,7 +64,9 @@ [MGLAccountManager sharedManager].accessToken = accessToken; #if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR - [MGLMapboxEvents setupWithAccessToken:accessToken]; + dispatch_async(dispatch_get_main_queue(), ^{ + [MGLMapboxEvents setupWithAccessToken:accessToken]; + }); #endif } |