diff options
author | Kim Alvefur <zash@zash.se> | 2016-10-09 21:48:53 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-10-09 21:48:53 +0200 |
commit | 8b4bf07cf1c68f337a0180f65e25afeca35cb8ab (patch) | |
tree | 711440dc123a0de2c530ad61aa5b3e257c6d79e9 | |
parent | de36c063b3efe67350888cd8334c7c17a1acd439 (diff) | |
download | prosody-8b4bf07cf1c68f337a0180f65e25afeca35cb8ab.tar.gz prosody-8b4bf07cf1c68f337a0180f65e25afeca35cb8ab.zip |
net.server_epoll: Check that connection still exists after callback, fixes traceback when closed
-rw-r--r-- | net/server_epoll.lua | 1 |
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); |