aboutsummaryrefslogtreecommitdiff
path: root/src/socket.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.lua')
-rw-r--r--src/socket.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket.lua b/src/socket.lua
index ad96ddb..be16efe 100644
--- a/src/socket.lua
+++ b/src/socket.lua
@@ -90,7 +90,8 @@ socket.sinkt["keep-open"] = function(sock)
90 dirty = function() return sock:dirty() end 90 dirty = function() return sock:dirty() end
91 }, { 91 }, {
92 __call = function(self, chunk, err) 92 __call = function(self, chunk, err)
93 return sock:send(chunk) 93 if chunk then return sock:send(chunk)
94 else return 1 end
94 end 95 end
95 }) 96 })
96end 97end