Skip to content

Commit

Permalink
fix: Run lastNEndpointsChanged asynchronously in Conference#endpointS…
Browse files Browse the repository at this point in the history
…ourcesChanged. (#1611)

This is called in the Colibri message processing critical path.
  • Loading branch information
JonathanLennox authored May 29, 2024
1 parent aebbda9 commit 2e0434d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jvb/src/main/java/org/jitsi/videobridge/Conference.java
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ private void endpointsChanged(boolean includesNonVisitors)
private void endpointSourcesChanged(@NotNull Endpoint endpoint)
{
// Force an update to be propagated to each endpoint's bitrate controller.
lastNEndpointsChanged();
// We run this async because this method is called in the Colibri critical path.
lastNEndpointsChangedAsync();
}

/**
Expand Down

0 comments on commit 2e0434d

Please sign in to comment.