修复修改ws机制之后不能完全断开导致重复连接

This commit is contained in:
MrZ626
2021-06-19 20:27:06 +08:00
parent e846222ace
commit d0b9cdc503

View File

@@ -342,7 +342,7 @@ function WS.update(dt)
local time=timer()
for name,ws in next,wsList do
if ws.real then
if ws.status~='dead'and ws.triggerCHN:getCount()==0 then
if ws.triggerCHN:getCount()==0 then
ws.triggerCHN:push(0)
end
if ws.status=='connecting'then