From a6a380ec2cd9b367464bd65b1aa6a1a4f134ca90 Mon Sep 17 00:00:00 2001 From: actboy168 Date: Thu, 18 Jul 2024 14:13:02 +0800 Subject: [PATCH] fixes bug --- extension/script/common/net.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/script/common/net.lua b/extension/script/common/net.lua index 76be0e5f..1cff6321 100644 --- a/extension/script/common/net.lua +++ b/extension/script/common/net.lua @@ -113,7 +113,7 @@ local function update_stream(s, event) on_event(s, "data", data) end end - if event & EPOLLOUT ~= 0 then + if event & EPOLLOUT ~= 0 and not s.shutdown_w then local n = s._fd:send(s._writebuf) if n == nil then s.shutdown_w = true