aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src')
-rw-r--r--juick-server/src/main/java/com/juick/server/ServerManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/server/ServerManager.java b/juick-server/src/main/java/com/juick/server/ServerManager.java
index cbef33a5..e3bea1c0 100644
--- a/juick-server/src/main/java/com/juick/server/ServerManager.java
+++ b/juick-server/src/main/java/com/juick/server/ServerManager.java
@@ -107,7 +107,7 @@ public class ServerManager implements NotificationListener {
synchronized (wsHandler.getClients()) {
wsHandler.getClients().stream().filter(c ->
(!c.legacy && c.visitor.isAnonymous()) // anonymous users
- || c.visitor.getName().equals(serviceUser) // services
+ || c.visitor.equals(serviceUser) // services
|| (!c.legacy && uids.contains(c.visitor.getUid()))) // subscriptions
.forEach(c -> {
try {
@@ -146,7 +146,7 @@ public class ServerManager implements NotificationListener {
synchronized (wsHandler.getClients()) {
wsHandler.getClients().stream().filter(c ->
(!c.legacy && c.visitor.isAnonymous()) // anonymous users
- || c.visitor.getName().equals(serviceUser) // services
+ || c.visitor.equals(serviceUser) // services
|| (!c.legacy && threadUsers.contains(c.visitor.getUid()))) // subscriptions
.forEach(c -> {
try {