From aab9a27f73019ae5570663ab0c535f4f44b56c24 Mon Sep 17 00:00:00 2001 From: Gravit Date: Wed, 22 May 2019 05:41:58 +0700 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20Thread-Safe=20=D1=80=D0=B5=D0=B0?= =?UTF-8?q?=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20WaitEventHandler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gravit/launcher/request/websockets/WaitEventHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {