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