diff options
author | fiaxh <git@lightrise.org> | 2021-10-12 16:26:50 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-10-12 19:43:57 +0200 |
commit | e8c162eae3827a4f2abdf97b1e42f7398744c10e (patch) | |
tree | 30c0e693057f9998550d74c17291441b05fb970f /libdino | |
parent | bea85c8ab5f74d96f37c1b3a6ea1e83edd0de500 (diff) | |
download | dino-e8c162eae3827a4f2abdf97b1e42f7398744c10e.tar.gz dino-e8c162eae3827a4f2abdf97b1e42f7398744c10e.zip |
Fix misc compiler warnings
Diffstat (limited to 'libdino')
-rw-r--r-- | libdino/src/service/calls.vala | 12 |
1 files changed, 8 insertions, 4 deletions
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) { |