mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
Исправление RequestWorker
This commit is contained in:
parent
f25585abe1
commit
6692a01fb1
3 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ public static void startTask(Task task)
|
|||
}
|
||||
}
|
||||
@LauncherAPI
|
||||
public HWID getHWID()
|
||||
public static HWID getHWID()
|
||||
{
|
||||
return hwidProvider.getHWID();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue