mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Correctly handle ice candidate for stale call
Fixes #6373 Fixes #6305 // FREEBIE
This commit is contained in:
parent
52311eb881
commit
f92d768be5
@ -490,6 +490,7 @@ public class WebRtcCallService extends Service implements InjectableType, PeerCo
|
||||
private void handleLocalIceCandidate(Intent intent) {
|
||||
if (callState == CallState.STATE_IDLE || !Util.isEquals(this.callId, getCallId(intent))) {
|
||||
Log.w(TAG, "State is now idle, ignoring ice candidate...");
|
||||
return;
|
||||
}
|
||||
|
||||
if (recipient == null || callId == null) {
|
||||
@ -501,6 +502,7 @@ public class WebRtcCallService extends Service implements InjectableType, PeerCo
|
||||
intent.getStringExtra(EXTRA_ICE_SDP));
|
||||
|
||||
if (pendingIceUpdates != null) {
|
||||
Log.w(TAG, "Adding to pending ice candidates...");
|
||||
this.pendingIceUpdates.add(iceUpdateMessage);
|
||||
return;
|
||||
}
|
||||
@ -1005,6 +1007,7 @@ public class WebRtcCallService extends Service implements InjectableType, PeerCo
|
||||
intent.putExtra(EXTRA_ICE_SDP_MID, candidate.sdpMid);
|
||||
intent.putExtra(EXTRA_ICE_SDP_LINE_INDEX, candidate.sdpMLineIndex);
|
||||
intent.putExtra(EXTRA_ICE_SDP, candidate.sdp);
|
||||
intent.putExtra(EXTRA_CALL_ID, callId);
|
||||
|
||||
startService(intent);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user