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);