forgot to clean globalShutdownBackupFlag

This commit is contained in:
szymon 2020-08-11 20:04:41 +02:00
parent 9ffa3f0005
commit 3d4867519c

View File

@ -29,6 +29,7 @@ public class KillRestoreCommand {
.executes(ctx -> {
if(Statics.restoreAwaitThread != null && Statics.restoreAwaitThread.isAlive()) {
Statics.restoreAwaitThread.interrupt();
Statics.globalShutdownBackupFlag.set(true);
Statics.LOGGER.sendInfo(ctx.getSource(), "Backup restoration successfully stopped");
Statics.LOGGER.info("{} cancelled backup restoration.", ctx.getSource().getEntity() != null ?
"Player: " + ctx.getSource().getName() :