Skip to content

Commit

Permalink
net-im/dino: fix crash on call
Browse files Browse the repository at this point in the history
PR:		265850
  • Loading branch information
rozhuk-im authored and wahjava committed Aug 21, 2022
1 parent 021c283 commit 39dce0e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net-im/dino/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORTNAME= dino
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.0
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= net-im

MAINTAINER= ashish@FreeBSD.org
Expand Down
14 changes: 14 additions & 0 deletions net-im/dino/files/patch-libdino_src_service_call__peer__state.vala
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- libdino/src/service/call_peer_state.vala 2022-02-13 00:18:06.000000000 +0300
+++ libdino/src/service/call_peer_state.vala 2022-08-15 12:07:56.735765000 +0300
@@ -45,7 +45,10 @@
this.stream_interactor = stream_interactor;
this.calls = stream_interactor.get_module(Calls.IDENTITY);

- var session_info_type = stream_interactor.module_manager.get_module(call.account, Xep.JingleRtp.Module.IDENTITY).session_info_type;
+ Xep.JingleRtp.Module jinglertp_module = stream_interactor.module_manager.get_module(call.account, Xep.JingleRtp.Module.IDENTITY);
+ if (jinglertp_module == null) return;
+
+ var session_info_type = jinglertp_module.session_info_type;
session_info_type.mute_update_received.connect((session,mute, name) => {
if (this.sid != session.sid) return;

0 comments on commit 39dce0e

Please sign in to comment.