You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/02 02:53:50 UTC

[03/20] incubator-weex git commit: * [ios] fix websocket crash while close

* [ios] fix websocket crash while close


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/e2f9f0cc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/e2f9f0cc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/e2f9f0cc

Branch: refs/heads/master
Commit: e2f9f0cc98f7ac668a6fd5420c3df74a80d34a96
Parents: 5eb1cf0
Author: acton393 <zh...@gmail.com>
Authored: Thu Sep 28 17:30:24 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Thu Sep 28 17:30:24 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Module/WXWebSocketModule.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e2f9f0cc/ios/sdk/WeexSDK/Sources/Module/WXWebSocketModule.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Module/WXWebSocketModule.m b/ios/sdk/WeexSDK/Sources/Module/WXWebSocketModule.m
index c1c7e57..2e653b6 100644
--- a/ios/sdk/WeexSDK/Sources/Module/WXWebSocketModule.m
+++ b/ios/sdk/WeexSDK/Sources/Module/WXWebSocketModule.m
@@ -126,7 +126,7 @@ WX_EXPORT_METHOD(@selector(onclose:))
 
 - (void)close:(NSString *)code reason:(NSString *)reason
 {
-    if(!code)
+    if([WXUtility isBlankString:code])
     {
         [loader close];
         return;