Software /
code /
prosody
Comparison
net/server_epoll.lua @ 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 |
parent | 7687:ae24deae6488 |
child | 7707:7bb1cc7278b6 |
comparison
equal
deleted
inserted
replaced
7690:861a747e441b | 7691:a5ad858f3a93 |
---|---|
304 self:on("disconnect", err); | 304 self:on("disconnect", err); |
305 self:destroy() | 305 self:destroy() |
306 return; | 306 return; |
307 end | 307 end |
308 end | 308 end |
309 if not self.conn then return; end | |
309 if self.conn:dirty() then | 310 if self.conn:dirty() then |
310 self:setreadtimeout(false); | 311 self:setreadtimeout(false); |
311 self:pausefor(cfg.read_retry_delay); | 312 self:pausefor(cfg.read_retry_delay); |
312 else | 313 else |
313 self:setreadtimeout(); | 314 self:setreadtimeout(); |