This commit is contained in:
Cloud Wu
2023-12-27 21:02:25 +08:00
parent 4030687400
commit d9c30f9119

View File

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