forgot to clean globalShutdownBackupFlag
parent
9ffa3f0005
commit
3d4867519c
|
@ -29,6 +29,7 @@ public class KillRestoreCommand {
|
||||||
.executes(ctx -> {
|
.executes(ctx -> {
|
||||||
if(Statics.restoreAwaitThread != null && Statics.restoreAwaitThread.isAlive()) {
|
if(Statics.restoreAwaitThread != null && Statics.restoreAwaitThread.isAlive()) {
|
||||||
Statics.restoreAwaitThread.interrupt();
|
Statics.restoreAwaitThread.interrupt();
|
||||||
|
Statics.globalShutdownBackupFlag.set(true);
|
||||||
Statics.LOGGER.sendInfo(ctx.getSource(), "Backup restoration successfully stopped");
|
Statics.LOGGER.sendInfo(ctx.getSource(), "Backup restoration successfully stopped");
|
||||||
Statics.LOGGER.info("{} cancelled backup restoration.", ctx.getSource().getEntity() != null ?
|
Statics.LOGGER.info("{} cancelled backup restoration.", ctx.getSource().getEntity() != null ?
|
||||||
"Player: " + ctx.getSource().getName() :
|
"Player: " + ctx.getSource().getName() :
|
||||||
|
|
Loading…
Reference in New Issue