Software /
code /
prosody
Diff
net/server_event.lua @ 7809:34ca48325ce7
net.server_event: Also replace 'ondrain' when setting new listeners (thanks Ge0rG)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 04 Jan 2017 11:24:48 +0100 |
parent | 7688:88ad2d5bcf80 |
child | 7810:cdb5dd9f35c0 |
line wrap: on
line diff
--- a/net/server_event.lua Wed Jan 04 10:53:12 2017 +0100 +++ b/net/server_event.lua Wed Jan 04 11:24:48 2017 +0100 @@ -417,6 +417,7 @@ self.onreadtimeout = listener.onreadtimeout; self.onstatus = listener.onstatus; self.ondetach = listener.ondetach; + self.ondrain = listener.ondrain; end -- Stub handlers