From 9a1fea50ab16a87edac886f192be45d3a5956122 Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 7 Nov 2022 15:55:08 +0100 Subject: [PATCH] SEBSERV-362 Send (re)join instruction after collecting room was closed by proctor --- .../impl/proctoring/ExamProctoringRoomServiceImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ExamProctoringRoomServiceImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ExamProctoringRoomServiceImpl.java index 5241d681..8ddd0d78 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ExamProctoringRoomServiceImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ExamProctoringRoomServiceImpl.java @@ -475,7 +475,8 @@ public class ExamProctoringRoomServiceImpl implements ExamProctoringRoomService final ExamProctoringService examProctoringService) { // get all connections of the room - final List connectionTokens = this.getActiveCollectingRoomConnections(examId, roomName) + final List connectionTokens = this + .getActiveCollectingRoomConnections(examId, roomName) .getOrThrow() .stream() .map(cc -> cc.connectionToken) @@ -501,6 +502,12 @@ public class ExamProctoringRoomServiceImpl implements ExamProctoringRoomService connectionTokens, examProctoringService.getDefaultReconfigInstructionAttributes()); } + + // Send the rejoin to collecting room instruction to all involved clients + sendJoinCollectingRoomInstructions( + proctoringSettings, + connectionTokens, + examProctoringService); } private void cleanupBreakOutRooms(final ClientConnectionRecord cc) {