简化接收网络消息的task函数,不再永久停留于任务队列中

This commit is contained in:
MrZ626
2021-06-07 12:45:40 +08:00
parent c78e2c0fbf
commit a49d71f097
2 changed files with 298 additions and 311 deletions

View File

@@ -184,11 +184,7 @@ local loadingThread=coroutine.wrap(function()
STAT.run=STAT.run+1
--Connect to server
TASK.new(NET.updateWS_app)
TASK.new(NET.updateWS_user)
TASK.new(NET.updateWS_play)
NET.wsconn_app()
TASK.new(NET.freshPlayerCount)
YIELD()
while true do