aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 8a70e2dc..4852d7c0 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -513,9 +513,9 @@ function interface:onwritable()
else
self.writebuffer = nil;
end
+ self._writing = nil;
self:setwritetimeout(false);
self:ondrain(); -- Be aware of writes in ondrain
- self._writing = nil;
return ok;
elseif partial then
self:debug("Sent %d out of %d buffered bytes", partial, #data);