From f3e2a55869d2d866a67c0595315d11f344cb4b71 Mon Sep 17 00:00:00 2001 From: Valere Date: Fri, 19 Jun 2020 10:05:51 +0200 Subject: [PATCH] Crash Fix / nullify factory after dispose --- .../im/vector/riotx/features/call/WebRtcPeerConnectionManager.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/vector/src/main/java/im/vector/riotx/features/call/WebRtcPeerConnectionManager.kt b/vector/src/main/java/im/vector/riotx/features/call/WebRtcPeerConnectionManager.kt index 9f801d1acf..232f679828 100644 --- a/vector/src/main/java/im/vector/riotx/features/call/WebRtcPeerConnectionManager.kt +++ b/vector/src/main/java/im/vector/riotx/features/call/WebRtcPeerConnectionManager.kt @@ -727,6 +727,7 @@ class WebRtcPeerConnectionManager @Inject constructor( executor.execute { if (currentCall == null) { peerConnectionFactory?.dispose() + peerConnectionFactory = null } } }