aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-13 22:34:25 +0100
committerKim Alvefur <zash@zash.se>2019-11-13 22:34:25 +0100
commitc61d243834244ad2f6a274c454eb088936c96d95 (patch)
tree4672f34f6feaddb01538d502c17bff0df99749b1 /net
parente6f328b33cfd381832e89c2ef2b316aefbc03f83 (diff)
downloadprosody-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.lua4
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