X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=net%2Fhttpclient_listener.lua;h=5bed461de504078fd75bdf95ba77ce3faa2b5bd5;hb=28f1308730d635c442d8cca9eb2db3b15135c7da;hp=6517de442f9e90aad7d8abb4914cad433847c16d;hpb=b0f948eaa5c166121d8b5754c708a38f624b415d;p=prosody.git diff --git a/net/httpclient_listener.lua b/net/httpclient_listener.lua index 6517de44..5bed461d 100644 --- a/net/httpclient_listener.lua +++ b/net/httpclient_listener.lua @@ -30,7 +30,7 @@ end function httpclient.ondisconnect(conn, err) local request = requests[conn]; - if request then + if request and err ~= "closed" then request:reader(nil); end requests[conn] = nil;