net.dns: Support for resolving AAAA records
[prosody.git] / net / httpclient_listener.lua
index 6517de442f9e90aad7d8abb4914cad433847c16d..dfa250623af523d18c4950608c42cfe043afd78f 100644 (file)
@@ -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;