# HG changeset patch # User Kim Alvefur # Date 1477603170 -7200 # Node ID 7bb1cc7278b6f9b28b49b921e173f25f74354422 # Parent d92e186c2a1c11b9d7970149efb101a3da88f1da net.server_epoll: Make sure socket exists before checking if there is buffered data in it diff -r d92e186c2a1c -r 7bb1cc7278b6 net/server_epoll.lua --- a/net/server_epoll.lua Wed Oct 26 13:10:22 2016 +0200 +++ b/net/server_epoll.lua Thu Oct 27 23:19:30 2016 +0200 @@ -526,7 +526,7 @@ 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);