Исправление RequestWorker

This commit is contained in:
Gravit 2018-12-03 17:13:24 +07:00
parent f25585abe1
commit 6692a01fb1
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
3 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -13,6 +13,7 @@ public RequestWorker()
public BlockingQueue<Runnable> 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");
}
}

View file

@ -65,7 +65,7 @@ public static void startTask(Task task)
}
}
@LauncherAPI
public HWID getHWID()
public static HWID getHWID()
{
return hwidProvider.getHWID();
}