Software /
code /
prosody
Comparison
net/server_epoll.lua @ 7707:7bb1cc7278b6
net.server_epoll: Make sure socket exists before checking if there is buffered data in it
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 27 Oct 2016 23:19:30 +0200 |
parent | 7691:a5ad858f3a93 |
child | 7737:f93b3083b46b |
comparison
equal
deleted
inserted
replaced
7706:d92e186c2a1c | 7707:7bb1cc7278b6 |
---|---|
524 end | 524 end |
525 if t == false then return; end | 525 if t == false then return; end |
526 self:setflags(false); | 526 self:setflags(false); |
527 self._pausefor = addtimer(t, function () | 527 self._pausefor = addtimer(t, function () |
528 self._pausefor = nil; | 528 self._pausefor = nil; |
529 if self.conn:dirty() then | 529 if self.conn and self.conn:dirty() then |
530 self:onreadable(); | 530 self:onreadable(); |
531 end | 531 end |
532 self:setflags(true); | 532 self:setflags(true); |
533 end); | 533 end); |
534 end | 534 end |