From cb259a2c72175268416ea4107abe6e5c8ae35f78 Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Sun, 21 Feb 2021 11:59:11 -0600 Subject: [PATCH] Hopefully fix shutdown --- src/main/kotlin/mdnet/netty/ApplicationNetty.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/mdnet/netty/ApplicationNetty.kt b/src/main/kotlin/mdnet/netty/ApplicationNetty.kt index f368f23..686f33b 100644 --- a/src/main/kotlin/mdnet/netty/ApplicationNetty.kt +++ b/src/main/kotlin/mdnet/netty/ApplicationNetty.kt @@ -215,8 +215,8 @@ class Netty( } override fun stop() = apply { + channel.close().sync() transport.shutdownGracefully() - channel.closeFuture().sync() } override fun port(): Int = serverSettings.port