aboutsummaryrefslogtreecommitdiffstats
path: root/net/httpclient_listener.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/httpclient_listener.lua')
-rw-r--r--net/httpclient_listener.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpclient_listener.lua b/net/httpclient_listener.lua
index 69b7946b..a688a3e0 100644
--- a/net/httpclient_listener.lua
+++ b/net/httpclient_listener.lua
@@ -30,7 +30,7 @@ end
function httpclient.disconnect(conn, err)
local request = requests[conn];
- if request then
+ if request and err ~= "closed" then
request:reader(nil);
end
requests[conn] = nil;