aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-10-27 23:19:30 +0200
committerKim Alvefur <zash@zash.se>2016-10-27 23:19:30 +0200
commit78fdfac11b141a83604a2887bb831206f71bef54 (patch)
tree08585914e130897dbddb5e04d8d4a71779956fad /net/server_epoll.lua
parent484a67129dd872d380ebb92cd72b947bb75add34 (diff)
downloadprosody-78fdfac11b141a83604a2887bb831206f71bef54.tar.gz
prosody-78fdfac11b141a83604a2887bb831206f71bef54.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.lua2
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);