mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 20:18:21 +01:00
Fix sink method in tp module
This commit is contained in:
parent
700ece0721
commit
52bb99af35
@ -74,7 +74,7 @@ function metat.__index:command(cmd, arg)
|
||||
end
|
||||
|
||||
function metat.__index:sink(snk, pat)
|
||||
local chunk, err = c:receive(pat)
|
||||
local chunk, err = self.c:receive(pat)
|
||||
return snk(chunk, err)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user