修复ws模块有一个握手错误会导致报错

This commit is contained in:
MrZ626
2021-03-30 14:51:28 +08:00
parent a1c44bab40
commit 20f031fcb4

View File

@@ -88,7 +88,7 @@ do--Connect
readCHN:push("success")
else
local reason=JSON.decode(SOCK:receive(ctLen))
readCHN:push(code..":"..(reason and reason.message or"Server Error"))
readCHN:push((code or"???")..":"..(reason and reason.message or"Server Error"))
end
else
readCHN:push(err)