diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/RequestWorker.java b/Launcher/src/main/java/ru/gravit/launcher/client/RequestWorker.java index 6b8942c2..90850b22 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/RequestWorker.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/RequestWorker.java @@ -1,8 +1,6 @@ package ru.gravit.launcher.client; import javafx.concurrent.Task; -import ru.gravit.launcher.LauncherAPI; -import ru.gravit.launcher.request.Request; import ru.gravit.utils.helper.LogHelper; import java.util.concurrent.BlockingQueue; @@ -13,13 +11,13 @@ public RequestWorker() { queue = new LinkedBlockingQueue<>(64); } - public BlockingQueue queue; + public BlockingQueue queue; @Override public void run() { while (!Thread.interrupted()) { try { - Task task; + Runnable task; task = queue.take(); task.run(); } catch (InterruptedException e) {