修复对战房间内退出设置界面会尝试连接ws-stream的问题,整理代码

This commit is contained in:
MrZ626
2021-05-29 19:56:50 +08:00
parent 4fda9d8ef3
commit 0b43a01976
6 changed files with 21 additions and 20 deletions

View File

@@ -59,9 +59,9 @@ function scene.sceneInit(org)
upstreamProgress=1
if org=='setting_game'then NET.changeConfig()end
if NET.streamRoomID then
NET.wsconn_stream()
NET.streamRoomID=false
if NET.specSRID then
NET.wsconn_stream(NET.specSRID)
NET.specSRID=false
end
end
function scene.sceneBack()