From 75a64da3cc31a6545afe7ff4bbd6b8433104e2d6 Mon Sep 17 00:00:00 2001 From: Anton Georgiev Date: Thu, 9 Dec 2021 11:46:51 -0500 Subject: [PATCH] refactor: Decrease time allowed for reconnection We are receiving feedback that due to this 30s period that the user remains in the room, if a user exits a breakout room, that user won't be able to re-join it until 30s elapses. More investigation is needed but given that this 30s value is somewhat large, I'm [temporarily] reducing it to 10s. Related #13531 --- .../src/main/scala/org/bigbluebutton/core/models/Users2x.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/Users2x.scala b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/Users2x.scala index 7e53b9c82b..13d8922495 100755 --- a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/Users2x.scala +++ b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/Users2x.scala @@ -50,7 +50,7 @@ object Users2x { def findAllExpiredUserLeftFlags(users: Users2x, meetingExpireWhenLastUserLeftInMs: Long): Vector[UserState] = { if (meetingExpireWhenLastUserLeftInMs > 0) { users.toVector filter (u => u.userLeftFlag.left && u.userLeftFlag.leftOn != 0 && - System.currentTimeMillis() - u.userLeftFlag.leftOn > 30000) + System.currentTimeMillis() - u.userLeftFlag.leftOn > 10000) } else { // When meetingExpireWhenLastUserLeftInMs is set zero we need to // remove user right away to end the meeting as soon as possible.