ignore race condition after reject from notification

fixes #4351
fixes #4261
This commit is contained in:
Daniel Gultsch 2022-08-05 10:46:12 +02:00
parent 353c4f118d
commit d41020ccf3

View file

@ -892,7 +892,15 @@ public class JingleConnectionManager extends AbstractConnectionManager {
for (final AbstractJingleConnection connection : this.connections.values()) { for (final AbstractJingleConnection connection : this.connections.values()) {
if (connection.getId().sessionId.equals(sessionId)) { if (connection.getId().sessionId.equals(sessionId)) {
if (connection instanceof JingleRtpConnection) { if (connection instanceof JingleRtpConnection) {
try {
((JingleRtpConnection) connection).rejectCall(); ((JingleRtpConnection) connection).rejectCall();
return;
} catch (final IllegalStateException e) {
Log.w(
Config.LOGTAG,
"race condition on rejecting call from notification",
e);
}
} }
} }
} }