From 6325a98cff72ecf7f58c6b29b5321f534e085766 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 18 Sep 2020 11:51:46 +0200 Subject: Fix runtime criticals related to jingle file transfer --- libdino/src/service/jingle_file_transfers.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libdino/src/service') diff --git a/libdino/src/service/jingle_file_transfers.vala b/libdino/src/service/jingle_file_transfers.vala index 016939bf..3b2ca29b 100644 --- a/libdino/src/service/jingle_file_transfers.vala +++ b/libdino/src/service/jingle_file_transfers.vala @@ -218,7 +218,11 @@ public class JingleFileSender : FileSender, Object { throw new FileSendError.ENCRYPTION_FAILED("Should have created a precondition, but did not"); } } - yield stream.get_module(Xep.JingleFileTransfer.Module.IDENTITY).offer_file_stream(stream, full_jid, file_transfer.input_stream, file_transfer.server_file_name, file_meta.size, precondition_name, precondition_options); + try { + yield stream.get_module(Xep.JingleFileTransfer.Module.IDENTITY).offer_file_stream(stream, full_jid, file_transfer.input_stream, file_transfer.server_file_name, file_meta.size, precondition_name, precondition_options); + } catch (Error e) { + throw new FileSendError.UPLOAD_FAILED(@"offer_file_stream failed: $(e.message)"); + } return; } } -- cgit v1.2.3-70-g09d2