From e442d852879e7ea1041df8dc5734c4c389039299 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 9 Oct 2016 21:48:53 +0200 Subject: net.server_epoll: Check that connection still exists after callback, fixes traceback when closed --- net/server_epoll.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'net/server_epoll.lua') 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); -- cgit v1.2.3