aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/iq/module.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-09 21:47:50 +0100
committerMarvin W <git@larma.de>2017-03-10 17:33:27 +0100
commite59b9d2fff347bf779dff1fa8c945bc2a3c59d8b (patch)
tree07af25dc13f85628b9f9a6c1081fee54252301ce /xmpp-vala/src/module/iq/module.vala
parent93fd134a92fb50cc6e8a9b5db3d6f25e84e6fa10 (diff)
downloaddino-e59b9d2fff347bf779dff1fa8c945bc2a3c59d8b.tar.gz
dino-e59b9d2fff347bf779dff1fa8c945bc2a3c59d8b.zip
Various fixes in vala-xmpp
Diffstat (limited to 'xmpp-vala/src/module/iq/module.vala')
-rw-r--r--xmpp-vala/src/module/iq/module.vala6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/iq/module.vala b/xmpp-vala/src/module/iq/module.vala
index b5c50bd7..2e9ffa5d 100644
--- a/xmpp-vala/src/module/iq/module.vala
+++ b/xmpp-vala/src/module/iq/module.vala
@@ -12,7 +12,11 @@ namespace Xmpp.Iq {
private HashMap<string, ArrayList<Handler>> namespaceRegistrants = new HashMap<string, ArrayList<Handler>>();
public void send_iq(XmppStream stream, Iq.Stanza iq, ResponseListener? listener = null) {
- stream.write(iq.stanza);
+ try {
+ stream.write(iq.stanza);
+ } catch (IOStreamError e) {
+ print(@"$(e.message)\n");
+ }
if (listener != null) {
responseListeners.set(iq.id, listener);
}