fixed: 防止 my.socket 不存在
This commit is contained in:
parent
a2df6120ec
commit
adc6944155
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user