From 18321ed15ce782ff5d1f24de9f2fb459d714d125 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Tue, 31 Jan 2023 15:12:39 +0100 Subject: Collapse most stream releated errors into IOError --- xmpp-vala/src/module/message/module.vala | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'xmpp-vala/src/module/message') diff --git a/xmpp-vala/src/module/message/module.vala b/xmpp-vala/src/module/message/module.vala index ef39a663..bb63bca4 100644 --- a/xmpp-vala/src/module/message/module.vala +++ b/xmpp-vala/src/module/message/module.vala @@ -15,13 +15,9 @@ namespace Xmpp { public signal void received_error(XmppStream stream, MessageStanza message, ErrorStanza error); public signal void received_message_unprocessed(XmppStream stream, MessageStanza message); - public async void send_message(XmppStream stream, MessageStanza message) throws IOStreamError { + public async void send_message(XmppStream stream, MessageStanza message) throws IOError { yield send_pipeline.run(stream, message); - try { - yield stream.write_async(message.stanza); - } catch (IOStreamError e) { - throw new SendError.IO(e.message); - } + yield stream.write_async(message.stanza); } public async void received_message_stanza_async(XmppStream stream, StanzaNode node) { -- cgit v1.2.3-70-g09d2