fix shutdown (#590)
This commit is contained in:
@@ -130,7 +130,8 @@ open class GrpcServer(
|
|||||||
@PreDestroy
|
@PreDestroy
|
||||||
fun stop() {
|
fun stop() {
|
||||||
log.info("Shutting down GRPC Server...")
|
log.info("Shutting down GRPC Server...")
|
||||||
server?.shutdownNow()
|
server?.shutdown()
|
||||||
|
server?.awaitTermination(10, TimeUnit.SECONDS)
|
||||||
log.info("GRPC Server shot down")
|
log.info("GRPC Server shot down")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user