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 af6d219b0..e080b2a35 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java @@ -563,7 +563,10 @@ public class JingleRtpConnection extends AbstractJingleConnection } private void receiveContentModify(final JinglePacket jinglePacket) { - // TODO check session accepted + if (this.state != State.SESSION_ACCEPTED) { + terminateWithOutOfOrder(jinglePacket); + return; + } final Map modification = Maps.transformEntries( jinglePacket.getJingleContents(), (key, value) -> value.getSenders());