From 967d3e321786805548bb12d798955a7dd099c6c7 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 27 May 2017 17:24:24 +0100 Subject: [PATCH] stop propagating when we are done with a stanza --- src/plugins/ping.rs | 2 +- src/plugins/stanza.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/ping.rs b/src/plugins/ping.rs index f409a1e..e798bf0 100644 --- a/src/plugins/ping.rs +++ b/src/plugins/ping.rs @@ -51,7 +51,7 @@ impl PingPlugin { }); } } - Propagation::Continue + Propagation::Stop } fn reply_ping(&self, ping: &PingEvent) -> Propagation { diff --git a/src/plugins/stanza.rs b/src/plugins/stanza.rs index 02ef125..0924e5c 100644 --- a/src/plugins/stanza.rs +++ b/src/plugins/stanza.rs @@ -40,7 +40,7 @@ impl StanzaPlugin { self.proxy.dispatch(iq); } - Propagation::Continue + Propagation::Stop } }