Skip to content

Commit

Permalink
feat: 🥅 catch exceptions in onProxyShutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Dec 22, 2023
1 parent 3483e49 commit 66b25f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/zhanganzhi/chathub/ChatHub.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public void onInitialize(ProxyInitializeEvent event) {

@Subscribe
public void onProxyShutdown(ProxyShutdownEvent event) {
eventHub.shutdown();
try {
eventHub.shutdown();
} catch (Exception e) {
logger.error("ChatHub shutdown error", e);
}
}
}

0 comments on commit 66b25f7

Please sign in to comment.