ws连接必须在没有网络任务时执行

This commit is contained in:
MrZ626
2021-01-01 02:33:31 +08:00
parent 04bdf2e5ee
commit eac6800a17

View File

@@ -561,6 +561,10 @@ do--httpRequest & wsConnect
end
function wsConnect(tick,path,header)
if TASK.netTaskCount>0 then
LOG.print(text.waitNetTask,"message")
return
end
local task,err=client.wsraw{
url="ws://krakens.tpddns.cn:10026"..path,
origin="krakens.tpddns.cn",