aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 8880c793..100d3340 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -232,7 +232,7 @@ function interface:onreadable()
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;