Comparison

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
comparison
equal deleted inserted replaced
7807:caf26fc419e9 7809:34ca48325ce7
415 self.onincoming = listener.onincoming; 415 self.onincoming = listener.onincoming;
416 self.ontimeout = listener.ontimeout; 416 self.ontimeout = listener.ontimeout;
417 self.onreadtimeout = listener.onreadtimeout; 417 self.onreadtimeout = listener.onreadtimeout;
418 self.onstatus = listener.onstatus; 418 self.onstatus = listener.onstatus;
419 self.ondetach = listener.ondetach; 419 self.ondetach = listener.ondetach;
420 self.ondrain = listener.ondrain;
420 end 421 end
421 422
422 -- Stub handlers 423 -- Stub handlers
423 function interface_mt:onconnect() 424 function interface_mt:onconnect()
424 end 425 end