Fix age old bug with active status in Backup manager (#3262)

I cannot even reproduce this error but I guess one other person can. Fuck this stupid feature
This commit is contained in:
Josh Roy 2020-05-11 21:09:29 -04:00 committed by GitHub
parent a3a50e9cd5
commit 63dd5f3f64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,12 +69,12 @@ public class Backup implements Runnable {
if (active) {
return;
}
active = true;
taskLock = new CompletableFuture<>();
final String command = ess.getSettings().getBackupCommand();
if (command == null || "".equals(command)) {
return;
}
active = true;
taskLock = new CompletableFuture<>();
if ("save-all".equalsIgnoreCase(command)) {
final CommandSender cs = server.getConsoleSender();
server.dispatchCommand(cs, "save-all");