diff options
Diffstat (limited to 'net/httpclient_listener.lua')
-rw-r--r-- | net/httpclient_listener.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpclient_listener.lua b/net/httpclient_listener.lua index 00481afa..c4e3c153 100644 --- a/net/httpclient_listener.lua +++ b/net/httpclient_listener.lua @@ -52,7 +52,7 @@ end function httpclient.ondisconnect(conn, err) local request = requests[conn]; - if request and err ~= "closed" then + if request and request.conn then request:reader(nil); end requests[conn] = nil; |