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