Skip to content

Commit

Permalink
fix: Concurrent modification of receiverVideoConstraints. (#2125)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Apr 23, 2024
1 parent e155b81 commit 462b7f6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import org.jitsi.videobridge.cc.allocation.ReceiverConstraintsMap
import org.jitsi.videobridge.cc.allocation.VideoConstraints
import org.json.simple.JSONObject
import java.time.Instant
import java.util.concurrent.ConcurrentHashMap

/**
* Represents an endpoint in a conference (i.e. the entity associated with
Expand Down Expand Up @@ -60,7 +61,7 @@ abstract class AbstractEndpoint protected constructor(
/**
* The map of source name -> ReceiverConstraintsMap.
*/
private val receiverVideoConstraints = mutableMapOf<String, ReceiverConstraintsMap>()
private val receiverVideoConstraints = ConcurrentHashMap<String, ReceiverConstraintsMap>()

/**
* The statistics id of this <tt>Endpoint</tt>.
Expand Down

0 comments on commit 462b7f6

Please sign in to comment.