diff options
author | mpeterv <mpeterval@gmail.com> | 2016-02-11 15:56:57 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2016-02-11 15:56:57 +0300 |
commit | 52bb99af35159700814d78687e9d95142feb1a9c (patch) | |
tree | 022ae44cfb9124605977fa4edb7bdc38b1feb0c6 | |
parent | 700ece0721b4b1b70da413f15c5df7dcbae0fe3b (diff) | |
download | luasocket-52bb99af35159700814d78687e9d95142feb1a9c.tar.gz luasocket-52bb99af35159700814d78687e9d95142feb1a9c.tar.bz2 luasocket-52bb99af35159700814d78687e9d95142feb1a9c.zip |
Fix sink method in tp module
-rw-r--r-- | src/tp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -74,7 +74,7 @@ function metat.__index:command(cmd, arg) | |||
74 | end | 74 | end |
75 | 75 | ||
76 | function metat.__index:sink(snk, pat) | 76 | function 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) |
79 | end | 79 | end |
80 | 80 | ||