From 130965f322ea58d3d2bbce5ee6ac31dae2d3a659 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 22 Aug 2019 16:05:28 +0200 Subject: Add incoming mediated invitation support (#162) Co-authored-by: Emmanuel Gil Peyrot --- xmpp-vala/src/module/util.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xmpp-vala/src/module/util.vala') diff --git a/xmpp-vala/src/module/util.vala b/xmpp-vala/src/module/util.vala index cb11418c..28f1a5f8 100644 --- a/xmpp-vala/src/module/util.vala +++ b/xmpp-vala/src/module/util.vala @@ -19,7 +19,7 @@ public abstract class StanzaListener : OrderedListener { public class StanzaListenerHolder : ListenerHolder { - public async void run(XmppStream stream, T stanza) { + public async bool run(XmppStream stream, T stanza) { // listeners can change e.g. when switching to another stream ArrayList listeners_copy = new ArrayList(); @@ -28,8 +28,9 @@ public class StanzaListenerHolder : ListenerHolder { foreach (OrderedListener ol in listeners_copy) { StanzaListener l = ol as StanzaListener; bool stop = yield l.run(stream, stanza); - if (stop) break; + if (stop) return true; } + return false; } } -- cgit v1.2.3-54-g00ecf