ignore race condition after reject from notification (iNPUTmice)

This commit is contained in:
Arne 2022-08-05 13:55:51 +02:00
parent f7f04389d2
commit 24b0adb67f

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) {
((JingleRtpConnection) connection).rejectCall(); try {
((JingleRtpConnection) connection).rejectCall();
return;
} catch (final IllegalStateException e) {
Log.w(
Config.LOGTAG,
"race condition on rejecting call from notification",
e);
}
} }
} }
} }