From bac83f37401ebbcda1066c525e17bc05c71befc5 Mon Sep 17 00:00:00 2001 From: garfield_ho Date: Mon, 2 Dec 2013 17:19:52 +0800 Subject: [PATCH] Cancel the onSubThreadEnded callback,because _ws may be deleted in the onClose callback. --- cocos/network/WebSocket.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/cocos/network/WebSocket.cpp b/cocos/network/WebSocket.cpp index 883c1d8554..9b468a5998 100644 --- a/cocos/network/WebSocket.cpp +++ b/cocos/network/WebSocket.cpp @@ -156,7 +156,6 @@ void WsThreadHelper::wsThreadEntryFunc() } } - _ws->onSubThreadEnded(); } void WsThreadHelper::sendMessageToUIThread(WsMessage *msg)