broadcast fix

This commit is contained in:
ingmargoudt 2017-04-04 20:40:37 +02:00
parent e42d195f8d
commit f04fecf7a6

View file

@ -146,7 +146,7 @@ public class ChatSession {
if (user.isPresent()) { if (user.isPresent()) {
user.get().fireCallback(clientCallback); user.get().fireCallback(clientCallback);
} else { } else {
clientsToRemove = new HashSet<>(); clientsToRemove.add(userId);
} }
} }
for (UUID userIdToRemove : clientsToRemove) { for (UUID userIdToRemove : clientsToRemove) {