From e8c162eae3827a4f2abdf97b1e42f7398744c10e Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 12 Oct 2021 16:26:50 +0200 Subject: Fix misc compiler warnings --- libdino/src/service/calls.vala | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libdino/src/service') diff --git a/libdino/src/service/calls.vala b/libdino/src/service/calls.vala index 4c3bbea7..365c15d9 100644 --- a/libdino/src/service/calls.vala +++ b/libdino/src/service/calls.vala @@ -124,11 +124,15 @@ namespace Dino { XmppStream? stream = stream_interactor.get_stream(account); if (stream == null) return; - Xep.Jingle.Session session = yield stream.get_module(Xep.JingleRtp.Module.IDENTITY).start_call(stream, full_jid, video, sid); - sessions[call] = session; - sid_by_call[call.account][call] = session.sid; + try { + Xep.Jingle.Session session = yield stream.get_module(Xep.JingleRtp.Module.IDENTITY).start_call(stream, full_jid, video, sid); + sessions[call] = session; + sid_by_call[call.account][call] = session.sid; - connect_session_signals(call, session); + connect_session_signals(call, session); + } catch (Error e) { + warning("Failed to start call: %s", e.message); + } } public void end_call(Conversation conversation, Call call) { -- cgit v1.2.3-70-g09d2