bugfix: socket.block will block socket.close

This commit is contained in:
Cloud Wu
2014-03-26 14:48:28 +08:00
parent 8a8353458c
commit 103602259a

View File

@@ -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