aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-01-04 11:24:48 +0100
committerKim Alvefur <zash@zash.se>2017-01-04 11:24:48 +0100
commita6e9f2a8cdef8f284b76f409aca0c96b5dc85c57 (patch)
tree686ff1b9fde6f6decc614f335bd9056ebdca5903 /net
parentf5f1dd31ef472f6ad9f50ed0be861dfadf1b0542 (diff)
downloadprosody-a6e9f2a8cdef8f284b76f409aca0c96b5dc85c57.tar.gz
prosody-a6e9f2a8cdef8f284b76f409aca0c96b5dc85c57.zip
net.server_event: Also replace 'ondrain' when setting new listeners (thanks Ge0rG)
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 43a19fe9..3a907349 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -417,6 +417,7 @@ function interface_mt:setlistener(listener)
self.onreadtimeout = listener.onreadtimeout;
self.onstatus = listener.onstatus;
self.ondetach = listener.ondetach;
+ self.ondrain = listener.ondrain;
end
-- Stub handlers