# HG changeset patch # User Kim Alvefur # Date 1573680865 -3600 # Node ID bd8fbee04a2fc7686dcab18da9e5fc3345112fc4 # Parent a7903de619b0602db0604ba8abb5cb642fcaace3 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. diff -r a7903de619b0 -r bd8fbee04a2f net/server_event.lua --- 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