mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 14:18:34 +00:00
Mitigate PSTN callback crash when service is in background.
This commit is contained in:
parent
dfa6306b61
commit
0077b29d6e
@ -479,10 +479,12 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void hangup() {
|
private void hangup() {
|
||||||
Intent intent = new Intent(WebRtcCallService.this, WebRtcCallService.class);
|
if (serviceState != null && serviceState.getCallInfoState().getActivePeer() != null) {
|
||||||
intent.setAction(ACTION_LOCAL_HANGUP);
|
Intent intent = new Intent(WebRtcCallService.this, WebRtcCallService.class);
|
||||||
|
intent.setAction(ACTION_LOCAL_HANGUP);
|
||||||
|
|
||||||
startService(intent);
|
startService(intent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user