From 78fdfac11b141a83604a2887bb831206f71bef54 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 27 Oct 2016 23:19:30 +0200 Subject: net.server_epoll: Make sure socket exists before checking if there is buffered data in it --- net/server_epoll.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3