no sync in ping and event
This commit is contained in:
parent
45e01dc0dd
commit
5dc85f9e73
2 changed files with 12 additions and 12 deletions
|
@ -161,10 +161,10 @@ public class SEBClientEventBatchService {
|
|||
}
|
||||
|
||||
ClientConnectionDataInternal clientConnection = null;
|
||||
synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
|
||||
clientConnection = this.examSessionCacheService
|
||||
.getClientConnection(eventData.connectionToken);
|
||||
}
|
||||
//synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
|
||||
clientConnection = this.examSessionCacheService
|
||||
.getClientConnection(eventData.connectionToken);
|
||||
//}
|
||||
|
||||
if (clientConnection == null) {
|
||||
log.error("Failed to get ClientConnectionDataInternal for: {}", eventData.connectionToken);
|
||||
|
@ -208,10 +208,10 @@ public class SEBClientEventBatchService {
|
|||
try {
|
||||
|
||||
ClientConnectionDataInternal clientConnection = null;
|
||||
synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
|
||||
clientConnection = this.examSessionCacheService
|
||||
.getClientConnection(eventData.connectionToken);
|
||||
}
|
||||
//synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
|
||||
clientConnection = this.examSessionCacheService
|
||||
.getClientConnection(eventData.connectionToken);
|
||||
//}
|
||||
|
||||
if (clientConnection == null) {
|
||||
log.warn("Failed to retrieve ClientConnection for token {}. Skip this event",
|
||||
|
|
|
@ -92,10 +92,10 @@ public class SEBClientPingBatchService {
|
|||
}
|
||||
|
||||
ClientConnectionDataInternal activeClientConnection = null;
|
||||
synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
|
||||
activeClientConnection = this.examSessionCacheService
|
||||
.getClientConnection(connectionToken);
|
||||
}
|
||||
//synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
|
||||
activeClientConnection = this.examSessionCacheService
|
||||
.getClientConnection(connectionToken);
|
||||
//}
|
||||
|
||||
if (activeClientConnection != null) {
|
||||
activeClientConnection.notifyPing(timestamp);
|
||||
|
|
Loading…
Reference in a new issue