From 4ba826c6aa2d3995d93a4de9932a420e6bcbdab8 Mon Sep 17 00:00:00 2001 From: hiroshisuga <45039819+hiroshisuga@users.noreply.github.com> Date: Thu, 6 Jul 2023 10:14:08 +0900 Subject: [PATCH] Update SelectRandomViewerReqMsgHdlr.scala --- .../core/apps/users/SelectRandomViewerReqMsgHdlr.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/SelectRandomViewerReqMsgHdlr.scala b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/SelectRandomViewerReqMsgHdlr.scala index 85858f2dfd..be8252a562 100644 --- a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/SelectRandomViewerReqMsgHdlr.scala +++ b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/SelectRandomViewerReqMsgHdlr.scala @@ -40,7 +40,7 @@ trait SelectRandomViewerReqMsgHdlr extends RightsManagementTrait { val pickedUser = if (usersPicked.size == 0) "" else usersPicked(randNum.nextInt(usersPicked.size)).intId if (reduceDuplicatedPick) { - if (usersPicked.size == 1) { + if (usersPicked.size <= 1) { // Initialise the exemption val usersToUnexempt = Users2x.findAll(liveMeeting.users2x) usersToUnexempt foreach { u =>