From d7f38a3e5aca544eb2275f04c5b9c8f40d327a57 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 12 Feb 2022 10:19:54 +0100 Subject: [PATCH] fix precondition for timeout handling --- .../eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java index 12ba35733..9ed4d188f 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java @@ -1107,7 +1107,7 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web } 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"); if (isTerminated()) { Log.i(Config.LOGTAG, id.account.getJid().asBareJid() + ": ignoring error because session was already terminated");