From ecc6b1ed0938c6c09cd6b314a4a378c74c8f4d7b Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 16 Oct 2023 11:59:10 -0500 Subject: [PATCH] Get callback off the webrtc thread To avoid internal libwebrtc threading checks causing issues in some cases. --- .../java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java index 276a737bc..b6885ef5f 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java @@ -155,7 +155,7 @@ public class WebRTCWrapper { PeerConnection.IceGatheringState iceGatheringState) { Log.d(EXTENDED_LOGGING_TAG, "onIceGatheringChange(" + iceGatheringState + ")"); if (iceGatheringState == PeerConnection.IceGatheringState.COMPLETE) { - eventCallback.onIceGatheringComplete(iceCandidates); + execute(() -> eventCallback.onIceGatheringComplete(iceCandidates)); } } -- 2.45.2