From adc6944155b1755ee91eeb332dc857862fbe81df Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Fri, 8 May 2020 10:42:37 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E9=98=B2=E6=AD=A2=20my.socket=20?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unisocket/unisocket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unisocket/unisocket.js b/unisocket/unisocket.js index 2e0684c..2c45eba 100644 --- a/unisocket/unisocket.js +++ b/unisocket/unisocket.js @@ -46,7 +46,7 @@ module.exports={ return my.socket }, closeSocket(){ - my.socket.close() + if (my.socket) my.socket.close() setTimeout(()=>{ clearInterval(my.reconnecting) delete my.reconnecting