diff options
author | Kim Alvefur <zash@zash.se> | 2017-01-04 11:24:48 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-01-04 11:24:48 +0100 |
commit | 80ea0e0397970712819731bf3779aab24095e4fc (patch) | |
tree | 686ff1b9fde6f6decc614f335bd9056ebdca5903 /net | |
parent | d589e26bca988e4345e54bd7ef5a2375be741ad4 (diff) | |
download | prosody-80ea0e0397970712819731bf3779aab24095e4fc.tar.gz prosody-80ea0e0397970712819731bf3779aab24095e4fc.zip |
net.server_event: Also replace 'ondrain' when setting new listeners (thanks Ge0rG)
Diffstat (limited to 'net')
-rw-r--r-- | net/server_event.lua | 1 |
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 |