Software /
code /
prosody
Changeset
7557:f0dd902534b0
net.server_epoll: Don't mistake success for an error
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 11 Aug 2016 22:49:26 +0200 |
parents | 7556:1f777b38b66c |
children | 7558:3a2fe8e10eeb |
files | net/server_epoll.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Wed Aug 10 21:11:09 2016 +0200 +++ b/net/server_epoll.lua Thu Aug 11 22:49:26 2016 +0200 @@ -232,7 +232,7 @@ self:setflags(true, nil); elseif err == "wantwrite" then self:setflags(nil, true); - elseif err ~= "timeout" then + elseif not data and err ~= "timeout" then self.listeners.ondisconnect(self, err); self:destroy() return;