From 3d4867519c9846a5f1195df8bbd6c79c40a1a763 Mon Sep 17 00:00:00 2001 From: szymon Date: Tue, 11 Aug 2020 20:04:41 +0200 Subject: [PATCH] forgot to clean globalShutdownBackupFlag --- .../textile_backup/commands/restore/KillRestoreCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/szum123321/textile_backup/commands/restore/KillRestoreCommand.java b/src/main/java/net/szum123321/textile_backup/commands/restore/KillRestoreCommand.java index 8ea451a..12081a3 100644 --- a/src/main/java/net/szum123321/textile_backup/commands/restore/KillRestoreCommand.java +++ b/src/main/java/net/szum123321/textile_backup/commands/restore/KillRestoreCommand.java @@ -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() :