mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Таймаут соеденения в 30 секунд
This commit is contained in:
parent
c9bcfcc8e0
commit
826a6c7567
1 changed files with 1 additions and 0 deletions
|
@ -310,6 +310,7 @@ public static Process launch(
|
|||
try (ServerSocket socket = new ServerSocket()) {
|
||||
|
||||
socket.setReuseAddress(true);
|
||||
socket.setSoTimeout(30000);
|
||||
socket.bind(new InetSocketAddress(SOCKET_HOST, SOCKET_PORT));
|
||||
Socket client = socket.accept();
|
||||
if (process == null) {
|
||||
|
|
Loading…
Reference in a new issue