fix precondition for timeout handling

This commit is contained in:
Daniel Gultsch 2022-02-12 10:19:54 +01:00
parent ecdb5af547
commit d7f38a3e5a

View file

@ -1107,7 +1107,7 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
} }
private void handleIqTimeoutResponse(final IqPacket response) { private void handleIqTimeoutResponse(final IqPacket response) {
Preconditions.checkArgument(response.getType() == IqPacket.TYPE.ERROR); Preconditions.checkArgument(response.getType() == IqPacket.TYPE.TIMEOUT);
Log.d(Config.LOGTAG, id.account.getJid().asBareJid() + ": received IQ timeout in RTP session with " + id.with + ". terminating with connectivity error"); Log.d(Config.LOGTAG, id.account.getJid().asBareJid() + ": received IQ timeout in RTP session with " + id.with + ". terminating with connectivity error");
if (isTerminated()) { if (isTerminated()) {
Log.i(Config.LOGTAG, id.account.getJid().asBareJid() + ": ignoring error because session was already terminated"); Log.i(Config.LOGTAG, id.account.getJid().asBareJid() + ": ignoring error because session was already terminated");