diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-13 22:34:25 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-13 22:34:25 +0100 |
commit | c61d243834244ad2f6a274c454eb088936c96d95 (patch) | |
tree | 4672f34f6feaddb01538d502c17bff0df99749b1 /net | |
parent | e6f328b33cfd381832e89c2ef2b316aefbc03f83 (diff) | |
download | prosody-c61d243834244ad2f6a274c454eb088936c96d95.tar.gz prosody-c61d243834244ad2f6a274c454eb088936c96d95.zip |
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.
Diffstat (limited to 'net')
-rw-r--r-- | net/server_event.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index 2b791291..a8279c42 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -463,10 +463,6 @@ end 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 |