mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
fix #1845
This commit is contained in:
@@ -330,7 +330,7 @@ function socket.read(id, sz)
|
||||
if ret then
|
||||
return ret
|
||||
end
|
||||
if not s.connected then
|
||||
if s.closing or not s.connected then
|
||||
return false, driver.readall(s.buffer, s.pool)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user