diff options
author | Kim Alvefur <zash@zash.se> | 2016-10-27 23:19:30 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-10-27 23:19:30 +0200 |
commit | 02a841a72eb0e02a1f5091d0a23e10bf78ee368c (patch) | |
tree | 08585914e130897dbddb5e04d8d4a71779956fad /net/server_epoll.lua | |
parent | 1e4b7ae7e3edb8c255185fe2090b2076fcbf265f (diff) | |
download | prosody-02a841a72eb0e02a1f5091d0a23e10bf78ee368c.tar.gz prosody-02a841a72eb0e02a1f5091d0a23e10bf78ee368c.zip |
net.server_epoll: Make sure socket exists before checking if there is buffered data in it
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r-- | net/server_epoll.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index 7482abba..fcc7e99d 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -526,7 +526,7 @@ function interface:pausefor(t) self:setflags(false); self._pausefor = addtimer(t, function () self._pausefor = nil; - if self.conn:dirty() then + if self.conn and self.conn:dirty() then self:onreadable(); end self:setflags(true); |