aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-07-22 17:04:02 +0100
committerMatthew Wild <mwild1@gmail.com>2012-07-22 17:04:02 +0100
commit900a0add219fab0bc4beb1bcd093ee8c1164958a (patch)
tree69196f6311cdeeee38e56f19eff28a11e044a390
parent3bdb9e7da9470303b85edf4aea0131d79839b281 (diff)
downloadprosody-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.lua7
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