aboutsummaryrefslogtreecommitdiffstats
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
commit80ea0e0397970712819731bf3779aab24095e4fc (patch)
tree686ff1b9fde6f6decc614f335bd9056ebdca5903
parentd589e26bca988e4345e54bd7ef5a2375be741ad4 (diff)
downloadprosody-80ea0e0397970712819731bf3779aab24095e4fc.tar.gz
prosody-80ea0e0397970712819731bf3779aab24095e4fc.zip
net.server_event: Also replace 'ondrain' when setting new listeners (thanks Ge0rG)
-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