From a597768c203327800cec9d7a810dea96e6e24f48 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 9 Mar 2016 14:48:39 +0100 Subject: [PATCH] removed unnecessary synchronization --- src/dorkbox/network/connection/RegistrationWrapper.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/dorkbox/network/connection/RegistrationWrapper.java b/src/dorkbox/network/connection/RegistrationWrapper.java index 12de3052..ffd761ca 100644 --- a/src/dorkbox/network/connection/RegistrationWrapper.java +++ b/src/dorkbox/network/connection/RegistrationWrapper.java @@ -99,12 +99,8 @@ class RegistrationWrapper implements UdpServer { */ public IntMap getAndLockChannelMap() { - // try to lock access + // try to lock access, also guarantees that the contents of this map are visible across threads this.channelMapLock.lock(); - - // guarantee that the contents of this map are visible across threads - synchronized (this.channelMap) { - } return this.channelMap; }