diff --git a/app/src/main/java/org/thoughtcrime/securesms/service/WebRtcCallService.java b/app/src/main/java/org/thoughtcrime/securesms/service/WebRtcCallService.java index dbdcd80acd..5317d029f3 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/service/WebRtcCallService.java +++ b/app/src/main/java/org/thoughtcrime/securesms/service/WebRtcCallService.java @@ -479,10 +479,12 @@ public class WebRtcCallService extends Service implements CallManager.Observer, } private void hangup() { - Intent intent = new Intent(WebRtcCallService.this, WebRtcCallService.class); - intent.setAction(ACTION_LOCAL_HANGUP); + if (serviceState != null && serviceState.getCallInfoState().getActivePeer() != null) { + Intent intent = new Intent(WebRtcCallService.this, WebRtcCallService.class); + intent.setAction(ACTION_LOCAL_HANGUP); - startService(intent); + startService(intent); + } } }