Skip to content

Commit

Permalink
fix shutdown (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
a10zn8 authored Nov 5, 2024
1 parent 243a11e commit b8f8794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/io/emeraldpay/dshackle/GrpcServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

0 comments on commit b8f8794

Please sign in to comment.