X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=net%2Fhttpclient_listener.lua;h=dfa250623af523d18c4950608c42cfe043afd78f;hb=b61f92a28111e347d5b807e9329ac1ae2629fea4;hp=6517de442f9e90aad7d8abb4914cad433847c16d;hpb=b8e41747b3923e960ab09a4b6b3df946ec36464f;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;