Always wait when performing action after exit

This commit is contained in:
crschnick 2024-01-19 00:22:29 +00:00
parent 41965a521b
commit 65cec08224
2 changed files with 5 additions and 5 deletions

View file

@ -211,6 +211,11 @@ public abstract class OperationMode {
OperationMode.halt(1);
}
// In case we perform any operations such as opening a terminal
// give it some time to open while this process is still alive
// Otherwise it might quit because the parent process is dead already
ThreadHelper.sleep(1000);
OperationMode.halt(0);
};

View file

@ -229,11 +229,6 @@ public abstract class UpdateHandler {
preparedUpdate.getValue().getVersion());
AppCache.update("performedUpdate", performedUpdate);
}
// In case we perform any operations such as opening a terminal
// give it some time to open while this process is still alive
// Otherwise it might quit because the parent process is dead already
ThreadHelper.sleep(1000);
});
}