Changeset

7691:a5ad858f3a93

net.server_epoll: Check that connection still exists after callback, fixes traceback when closed
author Kim Alvefur <zash@zash.se>
date Sun, 09 Oct 2016 21:48:53 +0200
parents 7690:861a747e441b
children 7693:93c041d5bb0b
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Sat Oct 08 21:07:12 2016 +0200
+++ b/net/server_epoll.lua	Sun Oct 09 21:48:53 2016 +0200
@@ -306,6 +306,7 @@
 			return;
 		end
 	end
+	if not self.conn then return; end
 	if self.conn:dirty() then
 		self:setreadtimeout(false);
 		self:pausefor(cfg.read_retry_delay);