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 | a6e9f2a8cdef8f284b76f409aca0c96b5dc85c57 (patch) | |
tree | 686ff1b9fde6f6decc614f335bd9056ebdca5903 | |
parent | f5f1dd31ef472f6ad9f50ed0be861dfadf1b0542 (diff) | |
download | prosody-a6e9f2a8cdef8f284b76f409aca0c96b5dc85c57.tar.gz prosody-a6e9f2a8cdef8f284b76f409aca0c96b5dc85c57.zip |
net.server_event: Also replace 'ondrain' when setting new listeners (thanks Ge0rG)
-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 |