Mitigate PSTN callback crash when service is in background.
This commit is contained in:
parent
dfa6306b61
commit
0077b29d6e
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue