This commit is contained in:
Sebastian Stenzel
2021-05-10 15:38:37 +02:00
parent 2e52afed51
commit 40dbc0ba48

View File

@@ -14,9 +14,7 @@ import javafx.concurrent.Task;
import java.nio.file.Path;
import java.security.SecureRandom;
import java.util.Objects;
import java.util.Optional;
import java.util.concurrent.CancellationException;
import java.util.concurrent.atomic.AtomicReference;
class HealthCheckTask extends Task<Void> {
@@ -53,7 +51,7 @@ class HealthCheckTask extends Task<Void> {
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
if(isCancelled()) {
if (isCancelled()) {
return;
} else {
Thread.currentThread().interrupt();