mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix crash when handling expired call offers.
This commit is contained in:
@@ -681,16 +681,18 @@ public abstract class WebRtcActionProcessor {
|
||||
|
||||
ApplicationDependencies.getAppForegroundObserver().removeListener(webRtcInteractor.getForegroundListener());
|
||||
|
||||
webRtcInteractor.updatePhoneState(LockManager.PhoneState.PROCESSING);
|
||||
boolean playDisconnectSound = (activePeer.getState() == CallState.DIALING) ||
|
||||
(activePeer.getState() == CallState.REMOTE_RINGING) ||
|
||||
(activePeer.getState() == CallState.RECEIVED_BUSY) ||
|
||||
(activePeer.getState() == CallState.CONNECTED);
|
||||
webRtcInteractor.stopAudio(playDisconnectSound);
|
||||
if (activePeer.getState() != CallState.IDLE) {
|
||||
webRtcInteractor.updatePhoneState(LockManager.PhoneState.PROCESSING);
|
||||
boolean playDisconnectSound = (activePeer.getState() == CallState.DIALING) ||
|
||||
(activePeer.getState() == CallState.REMOTE_RINGING) ||
|
||||
(activePeer.getState() == CallState.RECEIVED_BUSY) ||
|
||||
(activePeer.getState() == CallState.CONNECTED);
|
||||
webRtcInteractor.stopAudio(playDisconnectSound);
|
||||
|
||||
webRtcInteractor.terminateCall(activePeer.getId());
|
||||
webRtcInteractor.updatePhoneState(LockManager.PhoneState.IDLE);
|
||||
webRtcInteractor.stopForegroundService();
|
||||
webRtcInteractor.terminateCall(activePeer.getId());
|
||||
webRtcInteractor.updatePhoneState(LockManager.PhoneState.IDLE);
|
||||
webRtcInteractor.stopForegroundService();
|
||||
}
|
||||
|
||||
return WebRtcVideoUtil.deinitializeVideo(currentState)
|
||||
.builder()
|
||||
|
||||
Reference in New Issue
Block a user