加载时连接ws-app

This commit is contained in:
MrZ626
2021-03-28 00:52:39 +08:00
parent 73c5dc56d3
commit 4207d1b03f
2 changed files with 2 additions and 6 deletions

View File

@@ -1112,7 +1112,6 @@ do
]]
function TICK_WS_app()
local initial=true
local retryTime=5
while true do
YIELD()
@@ -1142,10 +1141,7 @@ do
elseif status=="dead"then
retryTime=retryTime-1
if retryTime==0 then return end
if initial then
for _=1,120 do YIELD()end
initial=false
end
for _=1,120 do YIELD()end
WS.connect("app","/app")
end
end