Skip to content

Commit

Permalink
Fixed MySQL purges not being gracefully interrupted on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Jan 5, 2022
1 parent 03bd194 commit 19ed016
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/net/coreprotect/command/PurgeCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ else if (argWid > 0) {
}
}
catch (Exception e) {
if (!ConfigHandler.serverRunning) {
Chat.sendGlobalMessage(player, Phrase.build(Phrase.PURGE_FAILED));
return;
}

e.printStackTrace();
}
}
Expand Down

0 comments on commit 19ed016

Please sign in to comment.