# HG changeset patch # User Kim Alvefur # Date 1483525488 -3600 # Node ID 34ca48325ce7e5924427fd4cbe8ba11ae67df9df # Parent caf26fc419e9c4ee99122f42e381a69911814249 net.server_event: Also replace 'ondrain' when setting new listeners (thanks Ge0rG) diff -r caf26fc419e9 -r 34ca48325ce7 net/server_event.lua --- 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