From 314ce82c0074beb22df9abf99c4f465bed7f7968 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 25 May 2023 16:15:36 +0200 Subject: [PATCH] removed synchronization for check access on SEB ping --- .../session/impl/SEBClientSessionServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientSessionServiceImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientSessionServiceImpl.java index 7d668cb0..4b70baa7 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientSessionServiceImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientSessionServiceImpl.java @@ -170,10 +170,8 @@ public class SEBClientSessionServiceImpl implements SEBClientSessionService { private void processPing(final String connectionToken, final long timestamp, final int pingNumber) { - ClientConnectionDataInternal activeClientConnection = null; - synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) { - activeClientConnection = this.examSessionCacheService.getClientConnection(connectionToken); - } + final ClientConnectionDataInternal activeClientConnection = this.examSessionCacheService + .getClientConnection(connectionToken); if (activeClientConnection != null) { activeClientConnection.notifyPing(timestamp, pingNumber);