mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Фикс синхронизации в LegacyRequestBridge
This commit is contained in:
parent
0d804a0558
commit
9adf69932c
1 changed files with 4 additions and 1 deletions
|
@ -13,9 +13,12 @@ public static ResultInterface sendRequest(RequestInterface request) throws IOExc
|
|||
waitEventHandler.requests.add(e);
|
||||
service.sendObject(request);
|
||||
while(!e.ready)
|
||||
{
|
||||
synchronized(e)
|
||||
{
|
||||
e.wait();
|
||||
}
|
||||
}
|
||||
ResultInterface result = e.result;
|
||||
waitEventHandler.requests.remove(e);
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue