Skip to content

Commit

Permalink
fixes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Jul 18, 2024
1 parent 4412c81 commit a6a380e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/script/common/net.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6a380e

Please sign in to comment.