mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +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
|
end
|
||||||
|
|
||||||
function metat.__index:sink(snk, pat)
|
function metat.__index:sink(snk, pat)
|
||||||
local chunk, err = c:receive(pat)
|
local chunk, err = self.c:receive(pat)
|
||||||
return snk(chunk, err)
|
return snk(chunk, err)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user