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
commit8b4bf07cf1c68f337a0180f65e25afeca35cb8ab (patch)
tree711440dc123a0de2c530ad61aa5b3e257c6d79e9 /net/server_epoll.lua
parentde36c063b3efe67350888cd8334c7c17a1acd439 (diff)
downloadprosody-8b4bf07cf1c68f337a0180f65e25afeca35cb8ab.tar.gz
prosody-8b4bf07cf1c68f337a0180f65e25afeca35cb8ab.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);