aboutsummaryrefslogtreecommitdiffstats
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
commitecb6218ce7e485970e1bc56f9464df13e739f878 (patch)
tree4672f34f6feaddb01538d502c17bff0df99749b1
parent2848e38b7e8a03b26b0aaab6e363403a19298abd (diff)
downloadprosody-ecb6218ce7e485970e1bc56f9464df13e739f878.tar.gz
prosody-ecb6218ce7e485970e1bc56f9464df13e739f878.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.
-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