diff --git a/Launcher/src/main/java/ru/gravit/launcher/LauncherEngine.java b/Launcher/src/main/java/ru/gravit/launcher/LauncherEngine.java index 2c78dcfc..af7d307f 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/LauncherEngine.java +++ b/Launcher/src/main/java/ru/gravit/launcher/LauncherEngine.java @@ -215,7 +215,7 @@ public void start(String... args) throws Throwable { Launcher.modulesManager.initModules(); // Load init.js script FunctionalBridge.worker = new RequestWorker(); - CommonHelper.newThread("FX Task Worker", true, FunctionalBridge.worker); + CommonHelper.newThread("FX Task Worker", true, FunctionalBridge.worker).start(); loadScript(Launcher.API_SCRIPT_FILE); loadScript(Launcher.CONFIG_SCRIPT_FILE); LogHelper.debug("Dir: %s", DirBridge.dir); diff --git a/Launcher/src/main/java/ru/gravit/launcher/RequestWorker.java b/Launcher/src/main/java/ru/gravit/launcher/RequestWorker.java index 992b78e7..b66d316a 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/RequestWorker.java +++ b/Launcher/src/main/java/ru/gravit/launcher/RequestWorker.java @@ -13,6 +13,7 @@ public RequestWorker() public BlockingQueue queue; @Override public void run() { + LogHelper.debug("FX Task Thread start"); while (!Thread.interrupted()) { try { @@ -24,5 +25,6 @@ public void run() { return; } } + LogHelper.debug("FX Task Thread done"); } } diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/FunctionalBridge.java b/Launcher/src/main/java/ru/gravit/launcher/client/FunctionalBridge.java index 10aaf6eb..365a4414 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/FunctionalBridge.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/FunctionalBridge.java @@ -65,7 +65,7 @@ public static void startTask(Task task) } } @LauncherAPI - public HWID getHWID() + public static HWID getHWID() { return hwidProvider.getHWID(); }