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 | 1c9bd014e39c32c563139c3ecc154a72bcb377b4 (patch) | |
tree | 6de829090a4fc0d052945bfb2606ffca84278768 /net | |
parent | 4936167a323b44c1768d6339a3fa32b448a96456 (diff) | |
download | prosody-1c9bd014e39c32c563139c3ecc154a72bcb377b4.tar.gz prosody-1c9bd014e39c32c563139c3ecc154a72bcb377b4.zip |
net.httpclient_listener: Don't notify request of closed connection if the close was initiated by us
Diffstat (limited to 'net')
-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 6517de44..5bed461d 100644 --- a/net/httpclient_listener.lua +++ b/net/httpclient_listener.lua @@ -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; |