fix shutdown (#590)

This commit is contained in:
a10zn8
2024-11-05 20:34:17 +03:00
committed by GitHub
parent 243a11e6bb
commit b8f87941a5

View File

@@ -130,7 +130,8 @@ open class GrpcServer(
@PreDestroy
fun stop() {
log.info("Shutting down GRPC Server...")
server?.shutdownNow()
server?.shutdown()
server?.awaitTermination(10, TimeUnit.SECONDS)
log.info("GRPC Server shot down")
}
}