aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-10-09 21:48:53 +0200
committerKim Alvefur <zash@zash.se>2016-10-09 21:48:53 +0200
commite442d852879e7ea1041df8dc5734c4c389039299 (patch)
tree711440dc123a0de2c530ad61aa5b3e257c6d79e9 /net/server_epoll.lua
parent0c1aa9cb856c26477832bfd643b9bbd083e6ab09 (diff)
downloadprosody-e442d852879e7ea1041df8dc5734c4c389039299.tar.gz
prosody-e442d852879e7ea1041df8dc5734c4c389039299.zip
net.server_epoll: Check that connection still exists after callback, fixes traceback when closed
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index a9896923..7482abba 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -306,6 +306,7 @@ function interface:onreadable()
return;
end
end
+ if not self.conn then return; end
if self.conn:dirty() then
self:setreadtimeout(false);
self:pausefor(cfg.read_retry_delay);