Skip to content

Commit

Permalink
fix(visitors): Fixes slowing down after meeting becomes live.
Browse files Browse the repository at this point in the history
Make sure there are several connects before slowing down the visitor trying to join. This slow down is handling the case where the meeting was live few minutes ago, but ended.
  • Loading branch information
damencho committed Dec 3, 2024
1 parent c0541c8 commit 9bc0e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/features/visitors/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
delay = msg.randomDelayMs;
}

if (WebsocketClient.getInstance().connectCount > 1) {
if (WebsocketClient.getInstance().connectCount > 3) {
// if we keep connecting/disconnecting, let's slow it down
delay = 30 * 1000;
}
Expand Down

0 comments on commit 9bc0e75

Please sign in to comment.