From 096f162ea66586db8b4ce3a41e3532e6f2559539 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 24 Jun 2021 12:54:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DWS=E6=A8=A1=E5=9D=97=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E5=9C=A8=E8=BF=9E=E6=8E=A5=E6=88=90=E5=8A=9F=E4=B9=8B?= =?UTF-8?q?=E5=89=8Dread=E5=87=BA=E6=95=B0=E6=8D=AE=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E6=B5=81=E7=A8=8B=E8=A2=AB=E6=89=93=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/websocket.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zframework/websocket.lua b/Zframework/websocket.lua index 06326b3d..bf882d75 100644 --- a/Zframework/websocket.lua +++ b/Zframework/websocket.lua @@ -325,7 +325,7 @@ end function WS.read(name) local ws=wsList[name] - if ws.real and CHN_getCount(ws.readCHN)>=2 then + if ws.real and ws.status~='connecting'and CHN_getCount(ws.readCHN)>=2 then local op,message=CHN_pop(ws.readCHN),CHN_pop(ws.readCHN) if op==8 then ws.status='dead'end--8=close ws.lastPongTime=timer()