weex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guris...@apache.org
Subject [03/20] incubator-weex git commit: * [ios] fix websocket crash while close
Date Mon, 02 Oct 2017 02:53:50 GMT
* [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 <zhangxing610321@gmail.com>
Authored: Thu Sep 28 17:30:24 2017 +0800
Committer: acton393 <zhangxing610321@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;


Mime
View raw message