Software /
code /
prosody
Changeset
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 |
parents | 7706:d92e186c2a1c |
children | 7717:9c8eb0239eef |
files | net/server_epoll.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Wed Oct 26 13:10:22 2016 +0200 +++ b/net/server_epoll.lua Thu Oct 27 23:19:30 2016 +0200 @@ -526,7 +526,7 @@ self:setflags(false); self._pausefor = addtimer(t, function () self._pausefor = nil; - if self.conn:dirty() then + if self.conn and self.conn:dirty() then self:onreadable(); end self:setflags(true);