diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-02-19 03:23:51 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-02-19 03:23:51 +0000 |
commit | eda3ad332699393bed8331ebddc3c57e36a31fcb (patch) | |
tree | b2fdaf2d424cc302c28f27bf3a231ced34ec97f3 | |
parent | 063347c86ac52f02f49421df7b4043be523c9208 (diff) | |
download | prosody-eda3ad332699393bed8331ebddc3c57e36a31fcb.tar.gz prosody-eda3ad332699393bed8331ebddc3c57e36a31fcb.zip |
net.httpclient_listener: Don't notify request of closed connection if the close was initiated by us
-rw-r--r-- | net/httpclient_listener.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpclient_listener.lua b/net/httpclient_listener.lua index 69b7946b..a688a3e0 100644 --- a/net/httpclient_listener.lua +++ b/net/httpclient_listener.lua @@ -30,7 +30,7 @@ end function httpclient.disconnect(conn, err) local request = requests[conn]; - if request then + if request and err ~= "closed" then request:reader(nil); end requests[conn] = nil; |