From ec6e27ab433d2ce1a8a3690e2ca722030938a88d Mon Sep 17 00:00:00 2001 From: Gravit Date: Sun, 11 Nov 2018 16:17:55 +0700 Subject: [PATCH] =?UTF-8?q?Runnable=20=D0=B2=20RequestWorker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/ru/gravit/launcher/client/RequestWorker.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) {