From 3b675ad8ed5d47746f2b6440f1c5b0057980c8dd Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 19 Jun 2021 14:06:39 +0800 Subject: [PATCH] =?UTF-8?q?ws=E6=B2=A1=E6=9C=89=E8=BF=9E=E6=8E=A5=E4=B8=8A?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E5=86=8D=E4=BC=9A=E5=90=91=E9=98=9F=E5=88=97?= =?UTF-8?q?=E9=87=8Cpush=E6=B6=88=E6=81=AF?= 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 6b634902..7bccd523 100644 --- a/Zframework/websocket.lua +++ b/Zframework/websocket.lua @@ -310,7 +310,7 @@ local OPname={ } function WS.send(name,message,op) local ws=wsList[name] - if ws.real then + if ws.real and ws.status=='running'then ws.sendCHN:push(op and OPcode[op]or 2)--2=binary ws.sendCHN:push(message) ws.lastPingTime=timer()