# HG changeset patch # User Matthew Wild # Date 1266549831 0 # Node ID a1fdfd7318dfa953b800331214304440a9018fb9 # Parent 61ae351c19b55bbf4bdd7007eb5d25be9e1966f4 net.httpclient_listener: Don't notify request of closed connection if the close was initiated by us diff -r 61ae351c19b5 -r a1fdfd7318df net/httpclient_listener.lua --- a/net/httpclient_listener.lua Fri Feb 19 03:22:42 2010 +0000 +++ b/net/httpclient_listener.lua Fri Feb 19 03:23:51 2010 +0000 @@ -30,7 +30,7 @@ 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;