diff --git a/src/dorkbox/network/connection/EndPoint.kt b/src/dorkbox/network/connection/EndPoint.kt index 1d6ea49b..fe9b2959 100644 --- a/src/dorkbox/network/connection/EndPoint.kt +++ b/src/dorkbox/network/connection/EndPoint.kt @@ -228,6 +228,7 @@ internal constructor(val type: Class<*>, */ internal val crypto: CryptoManagement + // this barrier only prevents multiple shutdowns (in the event this close() is called multiple timees) private val shutdown = atomic(false) @Volatile @@ -275,8 +276,6 @@ internal constructor(val type: Class<*>, serialization.finishInit(type, kryo) - handshakeSendIdleStrategy = config.sendIdleStrategy.cloneToNormal() - // the initial kryo created for serialization is reused as the read kryo if (type == Server::class.java) { readKryo = serialization.initKryo(kryo)