修复修改ws机制之后不能完全断开导致重复连接
This commit is contained in:
@@ -342,7 +342,7 @@ function WS.update(dt)
|
|||||||
local time=timer()
|
local time=timer()
|
||||||
for name,ws in next,wsList do
|
for name,ws in next,wsList do
|
||||||
if ws.real then
|
if ws.real then
|
||||||
if ws.status~='dead'and ws.triggerCHN:getCount()==0 then
|
if ws.triggerCHN:getCount()==0 then
|
||||||
ws.triggerCHN:push(0)
|
ws.triggerCHN:push(0)
|
||||||
end
|
end
|
||||||
if ws.status=='connecting'then
|
if ws.status=='connecting'then
|
||||||
|
|||||||
Reference in New Issue
Block a user