Fixed MySQL purges not being gracefully interrupted on shutdown
This commit is contained in:
parent
03bd19480e
commit
19ed0162e5
1 changed files with 5 additions and 0 deletions
|
|
@ -329,6 +329,11 @@ public class PurgeCommand extends Consumer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
|
if (!ConfigHandler.serverRunning) {
|
||||||
|
Chat.sendGlobalMessage(player, Phrase.build(Phrase.PURGE_FAILED));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue