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