X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=net%2Fhttpclient_listener.lua;h=dfa250623af523d18c4950608c42cfe043afd78f;hb=1881612f6e77c771984d73b85704e89818a82977;hp=6517de442f9e90aad7d8abb4914cad433847c16d;hpb=b0f948eaa5c166121d8b5754c708a38f624b415d;p=prosody.git diff --git a/net/httpclient_listener.lua b/net/httpclient_listener.lua index 6517de44..dfa25062 100644 --- a/net/httpclient_listener.lua +++ b/net/httpclient_listener.lua @@ -1,6 +1,6 @@ -- Prosody IM --- Copyright (C) 2008-2009 Matthew Wild --- Copyright (C) 2008-2009 Waqas Hussain +-- Copyright (C) 2008-2010 Matthew Wild +-- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. @@ -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;