Software /
code /
prosody
Changeset
10407:bd8fbee04a2f
server_event: Remove duplicated code (thanks waqas)
readcallback() calls onreadtimeout() and runs the exact same code if
onreadtimeout() doesn't return true, which it doesn't do.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 13 Nov 2019 22:34:25 +0100 |
parents | 10406:a7903de619b0 |
children | 10408:c765eca809e3 |
files | net/server_event.lua |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_event.lua Sat Nov 09 13:58:25 2019 +0100 +++ b/net/server_event.lua Wed Nov 13 22:34:25 2019 +0100 @@ -463,10 +463,6 @@ function interface_mt:ontimeout() end function interface_mt:onreadtimeout() - self.fatalerror = "timeout during receiving" - debug( "connection failed:", self.fatalerror ) - self:_close() - self.eventread = nil end function interface_mt:ondrain() end