# HG changeset patch # User Kim Alvefur # Date 1470948566 -7200 # Node ID f0dd902534b0dbac97744fb2419fab3b172963b6 # Parent 1f777b38b66cef8487c0cfcb8c72f10a3b6e2602 net.server_epoll: Don't mistake success for an error diff -r 1f777b38b66c -r f0dd902534b0 net/server_epoll.lua --- 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;