ensure we are in session accepted when processing content-modify

This commit is contained in:
Daniel Gultsch 2023-10-15 08:51:06 +02:00
parent 01b44948c1
commit 3350ea8b5b
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -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<String, Content.Senders> modification =
Maps.transformEntries(
jinglePacket.getJingleContents(), (key, value) -> value.getSenders());