aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormpeterv <mpeterval@gmail.com>2016-02-11 15:56:57 +0300
committermpeterv <mpeterval@gmail.com>2016-02-11 15:56:57 +0300
commit52bb99af35159700814d78687e9d95142feb1a9c (patch)
tree022ae44cfb9124605977fa4edb7bdc38b1feb0c6
parent700ece0721b4b1b70da413f15c5df7dcbae0fe3b (diff)
downloadluasocket-52bb99af35159700814d78687e9d95142feb1a9c.tar.gz
luasocket-52bb99af35159700814d78687e9d95142feb1a9c.tar.bz2
luasocket-52bb99af35159700814d78687e9d95142feb1a9c.zip
Fix sink method in tp module
-rw-r--r--src/tp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tp.lua b/src/tp.lua
index cbeff56..328cbab 100644
--- a/src/tp.lua
+++ b/src/tp.lua
@@ -74,7 +74,7 @@ function metat.__index:command(cmd, arg)
74end 74end
75 75
76function metat.__index:sink(snk, pat) 76function metat.__index:sink(snk, pat)
77 local chunk, err = c:receive(pat) 77 local chunk, err = self.c:receive(pat)
78 return snk(chunk, err) 78 return snk(chunk, err)
79end 79end
80 80