Skip to content

Commit

Permalink
Properly shutdown multi-proxy handling on proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Jun 14, 2024
1 parent 9cb7158 commit e1a059b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ public void onDisable() {
if (mysql != null) {
mysql.shutdown();
}
if (multiProxyHandler != null) {
multiProxyHandler.close();
}
getLogger().info("VotingPlugin disabled");
enabled = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ public void onProxyDisable(ProxyShutdownEvent event) {
if (mysql != null) {
mysql.shutDown();
}
if (multiProxyHandler != null) {
multiProxyHandler.close();
}
timer.shutdownNow();
bungeeTimeChecker.getTimer().shutdownNow();
enabled = false;
Expand Down

0 comments on commit e1a059b

Please sign in to comment.