Skip to content

Commit

Permalink
修正调试器进程泄露
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jun 7, 2024
1 parent 0be4c9a commit 9c94cac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 3rd/debugger/script/common/net.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -306,4 +306,3 @@ function m.update(timeout)
end

return m

0 comments on commit 9c94cac

Please sign in to comment.