diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-07-22 17:04:02 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-07-22 17:04:02 +0100 |
commit | 900a0add219fab0bc4beb1bcd093ee8c1164958a (patch) | |
tree | 69196f6311cdeeee38e56f19eff28a11e044a390 | |
parent | 3bdb9e7da9470303b85edf4aea0131d79839b281 (diff) | |
download | prosody-900a0add219fab0bc4beb1bcd093ee8c1164958a.tar.gz prosody-900a0add219fab0bc4beb1bcd093ee8c1164958a.zip |
mod_s2s: Don't treat a stanza as delivered if session.sends2s() returns false
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index 1dbdc6ee..8b1c7dab 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -97,9 +97,10 @@ function route_to_existing_session(event) log("error", "WARNING! This might, possibly, be a bug, but it might not..."); log("error", "We are going to send from %s instead of %s", tostring(host.from_host), tostring(from_host)); end - host.sends2s(stanza); - host.log("debug", "stanza sent over "..host.type); - return true; + if host.sends2s(stanza) then + host.log("debug", "stanza sent over "..host.type); + return true; + end end end end |