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 | e442d852879e7ea1041df8dc5734c4c389039299 (patch) | |
tree | 711440dc123a0de2c530ad61aa5b3e257c6d79e9 /net | |
parent | 0c1aa9cb856c26477832bfd643b9bbd083e6ab09 (diff) | |
download | prosody-e442d852879e7ea1041df8dc5734c4c389039299.tar.gz prosody-e442d852879e7ea1041df8dc5734c4c389039299.zip |
net.server_epoll: Check that connection still exists after callback, fixes traceback when closed
Diffstat (limited to 'net')
-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); |