mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Удален параметр updatesNotify и добавлено время ожидания к ClientLauncher.launch
This commit is contained in:
parent
64f865fa47
commit
3f887ef619
2 changed files with 2 additions and 3 deletions
|
@ -122,8 +122,6 @@ public static final class Config {
|
||||||
|
|
||||||
public String startScript;
|
public String startScript;
|
||||||
|
|
||||||
public boolean updatesNotify = true; // Defaultly to true
|
|
||||||
|
|
||||||
public String getAddress() {
|
public String getAddress() {
|
||||||
return address;
|
return address;
|
||||||
}
|
}
|
||||||
|
|
|
@ -302,7 +302,7 @@ public static Process launch(
|
||||||
// Write params file (instead of CLI; Mustdie32 API can't handle command line > 32767 chars)
|
// Write params file (instead of CLI; Mustdie32 API can't handle command line > 32767 chars)
|
||||||
LogHelper.debug("Writing ClientLauncher params");
|
LogHelper.debug("Writing ClientLauncher params");
|
||||||
ClientLauncherContext context = new ClientLauncherContext();
|
ClientLauncherContext context = new ClientLauncherContext();
|
||||||
CommonHelper.newThread("Client params writter", false, () ->
|
CommonHelper.newThread("Client params writter", true, () ->
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
try (ServerSocket socket = new ServerSocket()) {
|
try (ServerSocket socket = new ServerSocket()) {
|
||||||
|
@ -388,6 +388,7 @@ public static Process launch(
|
||||||
}
|
}
|
||||||
// Let's rock!
|
// Let's rock!
|
||||||
process = builder.start();
|
process = builder.start();
|
||||||
|
if(!LogHelper.isDebugEnabled()) Thread.sleep(1000); //даем время потоку записи
|
||||||
return process;
|
return process;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue