From 5100341e60ba2ac8091b461b93e1db5ccb1e18db Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Sat, 24 Apr 2021 14:34:16 -0400 Subject: [PATCH] Fix leaked receiver when call does not connect. --- .../thoughtcrime/securesms/service/webrtc/WebRtcCallService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/service/webrtc/WebRtcCallService.java b/app/src/main/java/org/thoughtcrime/securesms/service/webrtc/WebRtcCallService.java index 4b9cb9274..e83979bac 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/service/webrtc/WebRtcCallService.java +++ b/app/src/main/java/org/thoughtcrime/securesms/service/webrtc/WebRtcCallService.java @@ -138,6 +138,7 @@ public final class WebRtcCallService extends Service implements BluetoothStateMa } unregisterNetworkReceiver(); + unregisterPowerButtonReceiver(); TelephonyUtil.getManager(this) .listen(hangUpRtcOnDeviceCallAnswered, PhoneStateListener.LISTEN_NONE);