diff --git a/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/WaitEventHandler.java b/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/WaitEventHandler.java index 4bcf3835..d319714d 100644 --- a/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/WaitEventHandler.java +++ b/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/WaitEventHandler.java @@ -5,10 +5,12 @@ import ru.gravit.utils.helper.LogHelper; import java.util.HashSet; +import java.util.Set; import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; public class WaitEventHandler implements ClientWebSocketService.EventHandler { - public HashSet requests = new HashSet<>(); + public Set requests = ConcurrentHashMap.newKeySet(); @Override public void process(ResultInterface result) {