From 5b7eea90c4b0c8fdc0f47e7ececf56065a2574ab Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 18 Jul 2021 08:53:37 +0200 Subject: net.server_epoll: Fix traceback-causing typo Caused "attempt to index a string value (local 'data')", but only if keep_buffers is set to false, which is not the default. Introduced in 917eca7be82b --- net/server_epoll.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') diff --git a/net/server_epoll.lua b/net/server_epoll.lua index 4670f670..7b6f4680 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -504,7 +504,7 @@ function interface:onwritable() buffer[i] = nil; end else - data.writebuffer = data:sub(partial+1); + self.writebuffer = data:sub(partial+1); end self:set(nil, true); self:setwritetimeout(); -- cgit v1.2.3