From 9c94cacb5c5f8d2ed86a5e345a4061dfb5d7fbe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 7 Jun 2024 18:47:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=B0=83=E8=AF=95=E5=99=A8?= =?UTF-8?q?=E8=BF=9B=E7=A8=8B=E6=B3=84=E9=9C=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rd/debugger/script/common/net.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/3rd/debugger/script/common/net.lua b/3rd/debugger/script/common/net.lua index 33e8daa..9dac7ef 100644 --- a/3rd/debugger/script/common/net.lua +++ b/3rd/debugger/script/common/net.lua @@ -102,7 +102,7 @@ local function close_write(self) end local function update_stream(s, event) if event & (EPOLLERR | EPOLLHUP) ~= 0 then - event = event & (EPOLLIN | EPOLLOUT) + event = event | EPOLLIN | EPOLLOUT end if event & EPOLLIN ~= 0 then local data = s._fd:recv() @@ -306,4 +306,3 @@ function m.update(timeout) end return m -