mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
bugfix: socket.block will block socket.close
This commit is contained in:
@@ -257,6 +257,9 @@ function socket.block(id)
|
||||
assert(not s.read_required)
|
||||
s.read_required = 0
|
||||
suspend(s)
|
||||
if not s.connected and s.closing then
|
||||
skynet.wakeup(s.closing)
|
||||
end
|
||||
return s.connected
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user