Skip to content

Commit

Permalink
Shorten RPC server shutdown code
Browse files Browse the repository at this point in the history
  • Loading branch information
wasdennnoch committed Dec 7, 2024
1 parent 7c01903 commit 8ba866e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vanilla/src/main/java/gg/beemo/vanilla/Vanilla.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ object Vanilla {
log.info("Destroying everything")
ratelimitClient.destroy()
brokerConnection.destroy()
grpcServer.shutdown()
grpcServer.awaitTermination()
grpcServer.shutdown().awaitTermination()
LogManager.shutdown(true, true)
}, "Vanilla Shutdown Hook"))

Expand Down

0 comments on commit 8ba866e

Please sign in to comment.