* [iOS] fix dead lock about dealloc object
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/054b47c6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/054b47c6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/054b47c6 Branch: refs/heads/master Commit: 054b47c6db9c560e484d05f82bfd1ff6f791479b Parents: b872636 Author: acton393 <[email protected]> Authored: Thu Dec 14 18:08:36 2017 +0800 Committer: acton393 <[email protected]> Committed: Wed Dec 20 17:44:28 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/054b47c6/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m index 36e6af5..8d7e3fb 100644 --- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m +++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m @@ -401,9 +401,7 @@ typedef enum : NSUInteger { WXPerformBlockOnComponentThread(^{ __strong typeof(self) strongSelf = weakSelf; [strongSelf.componentManager unload]; - dispatch_async(dispatch_get_main_queue(), ^{ - [WXSDKManager removeInstanceforID:strongSelf.instanceId]; - }); + [WXSDKManager removeInstanceforID:strongSelf.instanceId]; }); if(url.length > 0){ [WXPrerenderManager addGlobalTask:url callback:nil];
