[FIX] Фикс синхронизации в LegacyRequestBridge

This commit is contained in:
Gravit 2019-01-29 22:31:41 +07:00
parent 0d804a0558
commit 9adf69932c
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -14,7 +14,10 @@ public static ResultInterface sendRequest(RequestInterface request) throws IOExc
service.sendObject(request); service.sendObject(request);
while(!e.ready) while(!e.ready)
{ {
e.wait(); synchronized(e)
{
e.wait();
}
} }
ResultInterface result = e.result; ResultInterface result = e.result;
waitEventHandler.requests.remove(e); waitEventHandler.requests.remove(e);