[FIX] Удален параметр updatesNotify и добавлено время ожидания к ClientLauncher.launch

This commit is contained in:
Gravit 2019-03-14 00:06:28 +07:00
parent 64f865fa47
commit 3f887ef619
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 2 additions and 3 deletions

View file

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

View file

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