From 919c5151b091c9b0b1ab0fdabc7b3eaa277544db Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Fri, 19 Jun 2020 15:40:05 -0500 Subject: [PATCH] Adjust shutdown timings --- src/main/kotlin/mdnet/base/netty/ApplicationNetty.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/mdnet/base/netty/ApplicationNetty.kt b/src/main/kotlin/mdnet/base/netty/ApplicationNetty.kt index 9b67f6c..b9aef00 100644 --- a/src/main/kotlin/mdnet/base/netty/ApplicationNetty.kt +++ b/src/main/kotlin/mdnet/base/netty/ApplicationNetty.kt @@ -112,8 +112,8 @@ class Netty(private val tls: TlsCert, private val clientSettings: ClientSettings } override fun stop() = apply { - masterGroup.shutdownGracefully(5, 15, TimeUnit.SECONDS).sync() - workerGroup.shutdownGracefully(5, 15, TimeUnit.SECONDS).sync() + masterGroup.shutdownGracefully(1, 15, TimeUnit.SECONDS).sync() + workerGroup.shutdownGracefully(1, 15, TimeUnit.SECONDS).sync() closeFuture.sync() }