diff --git a/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/LegacyRequestBridge.java b/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/LegacyRequestBridge.java index 03659c42..d6c9aa06 100644 --- a/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/LegacyRequestBridge.java +++ b/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/LegacyRequestBridge.java @@ -14,7 +14,10 @@ public static ResultInterface sendRequest(RequestInterface request) throws IOExc service.sendObject(request); while(!e.ready) { - e.wait(); + synchronized(e) + { + e.wait(); + } } ResultInterface result = e.result; waitEventHandler.requests.remove(e);