removed sync again (seems to has no effect)

This commit is contained in:
anhefti 2023-06-01 15:47:29 +02:00
parent 5dc85f9e73
commit 933ddaa4d3
2 changed files with 3 additions and 12 deletions

View file

@ -160,11 +160,8 @@ public class SEBClientEventBatchService {
return eventData;
}
ClientConnectionDataInternal clientConnection = null;
//synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
clientConnection = this.examSessionCacheService
final ClientConnectionDataInternal clientConnection = this.examSessionCacheService
.getClientConnection(eventData.connectionToken);
//}
if (clientConnection == null) {
log.error("Failed to get ClientConnectionDataInternal for: {}", eventData.connectionToken);
@ -207,11 +204,8 @@ public class SEBClientEventBatchService {
private ClientEventRecord toEventRecord(final EventData eventData) {
try {
ClientConnectionDataInternal clientConnection = null;
//synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
clientConnection = this.examSessionCacheService
final ClientConnectionDataInternal clientConnection = this.examSessionCacheService
.getClientConnection(eventData.connectionToken);
//}
if (clientConnection == null) {
log.warn("Failed to retrieve ClientConnection for token {}. Skip this event",

View file

@ -91,11 +91,8 @@ public class SEBClientPingBatchService {
return;
}
ClientConnectionDataInternal activeClientConnection = null;
//synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
activeClientConnection = this.examSessionCacheService
final ClientConnectionDataInternal activeClientConnection = this.examSessionCacheService
.getClientConnection(connectionToken);
//}
if (activeClientConnection != null) {
activeClientConnection.notifyPing(timestamp);