net.adns: Fix for calling handler when cancelling DNS lookup
[prosody.git] / net / httpclient_listener.lua
index 1948f2782962084e5528bc0576e37d1c05761d8c..9c4f23f37a7bd08fc488c6b483a09fc92c0f1d50 100644 (file)
@@ -25,7 +25,7 @@ function httpclient.disconnect(conn, err)
        if request then
                request:reader(nil);
        end
-       --requests[conn] = nil;
+       requests[conn] = nil;
 end
 
 function httpclient.register_request(conn, req)