We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e8c16 commit b02b3b0Copy full SHA for b02b3b0
src/main/java/vc/Application.java
@@ -110,13 +110,14 @@ public ScheduledExecutorService scheduledExecutorService() {
110
111
@PreDestroy
112
public void onDestroy() {
113
+ LOGGER.info("Shutting down Application");
114
try {
- if (this.gatewayDiscordClient != null) {
115
- this.gatewayDiscordClient.logout().block();
116
- }
117
if (this.scheduledExecutorService != null) {
118
this.scheduledExecutorService.shutdownNow();
119
}
+ if (this.gatewayDiscordClient != null) {
+ this.gatewayDiscordClient.logout().block(Duration.ofSeconds(5));
120
+ }
121
} catch (Exception e) {
122
LOGGER.error("Error during shutdown", e);
123
0 commit comments