unimportant

This commit is contained in:
Cosmin Apreutesei 2021-05-10 21:31:23 +03:00
parent dab134931c
commit d573b46a62
1 changed files with 3 additions and 3 deletions

View File

@ -261,9 +261,9 @@ local function _recv(self, sz)
self.buf = buf
end
local buf = buf(sz)
local n, err = self.sock:recvall(buf, sz)
if not n then return nil, err end
return ffi.string(buf, n)
local ok, err = self.sock:recvall(buf, sz)
if not ok then return nil, err end
return ffi.string(buf, sz)
end
local function _recv_packet(self)