net.server_epoll: Check that connection still exists after callback, fixes traceback when closed

This commit is contained in:
Kim Alvefur 2016-10-09 21:48:53 +02:00
parent de36c063b3
commit 8b4bf07cf1

View file

@ -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);