From 2cd59bb5e4c36e3816f15a32667eb41c68ba58fe Mon Sep 17 00:00:00 2001 From: DatLag Date: Mon, 15 Jul 2024 19:41:12 +0200 Subject: [PATCH] fix crash from binding same port --- .../dev/datlag/burningseries/k2k/connect/ConnectionServer.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/k2k/src/commonMain/kotlin/dev/datlag/burningseries/k2k/connect/ConnectionServer.kt b/k2k/src/commonMain/kotlin/dev/datlag/burningseries/k2k/connect/ConnectionServer.kt index 93c26e2f..5c59844b 100644 --- a/k2k/src/commonMain/kotlin/dev/datlag/burningseries/k2k/connect/ConnectionServer.kt +++ b/k2k/src/commonMain/kotlin/dev/datlag/burningseries/k2k/connect/ConnectionServer.kt @@ -31,7 +31,6 @@ internal data object ConnectionServer { socket.bind(socketAddress) { reuseAddress = true - reusePort = true }.accept().use { boundSocket -> suspendCatching { val readChannel = boundSocket.openReadChannel()