mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +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);
|
waitEventHandler.requests.add(e);
|
||||||
service.sendObject(request);
|
service.sendObject(request);
|
||||||
while(!e.ready)
|
while(!e.ready)
|
||||||
|
{
|
||||||
|
synchronized(e)
|
||||||
{
|
{
|
||||||
e.wait();
|
e.wait();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ResultInterface result = e.result;
|
ResultInterface result = e.result;
|
||||||
waitEventHandler.requests.remove(e);
|
waitEventHandler.requests.remove(e);
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue