diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamSessionControlTask.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamSessionControlTask.java index 2e1106ee..237e4910 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamSessionControlTask.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamSessionControlTask.java @@ -112,11 +112,12 @@ class ExamSessionControlTask implements DisposableBean { @Scheduled(fixedRateString = "${sebserver.webservice.api.seb.lostping.update:5000}") public void examSessionUpdateTask() { + this.sebClientConnectionService.updatePingEvents(); + if (!this.webserviceInfoDAO.isMaster(this.webserviceInfo.getWebserviceUUID())) { return; } - this.sebClientConnectionService.updatePingEvents(); this.sebClientConnectionService.cleanupInstructions(); this.examProcotringRoomService.updateProctoringCollectingRooms(); } diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/PingIntervalClientIndicator.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/PingIntervalClientIndicator.java index f22b7b53..a5bb26fa 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/PingIntervalClientIndicator.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/indicator/PingIntervalClientIndicator.java @@ -83,7 +83,7 @@ public final class PingIntervalClientIndicator extends AbstractPingIndicator { this.missingPing = this.pingErrorThreshold < value; } catch (final Exception e) { log.error("Failed to initialize missingPing: {}", e.getMessage()); - this.missingPing = false; + this.missingPing = true; } }