aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-30 12:19:14 +0300
committerGravatar Vitaly Takmazov2016-06-30 12:19:14 +0300
commit1f82412b053dce31d01e0c384bd18ad3b9e101ec (patch)
tree3dbfe99ade035af9047225f18598b4153c4b6e21 /src/main/java
parentfb4aa5389924cb11fa8bf6489baf29ca8d7a6814 (diff)
allow anonymous ws
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/juick/ws/WebsocketComponent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/ws/WebsocketComponent.java b/src/main/java/com/juick/ws/WebsocketComponent.java
index 8ccccb3b..d38f7b69 100644
--- a/src/main/java/com/juick/ws/WebsocketComponent.java
+++ b/src/main/java/com/juick/ws/WebsocketComponent.java
@@ -66,7 +66,7 @@ public class WebsocketComponent extends TextWebSocketHandler {
int MID = 0;
SocketSubscribed sockSubscr = null;
- if (hLocation.getPath().equals("/") && visitor.getUID() > 0) {
+ if (hLocation.getPath().equals("/")) {
logger.info(String.format("user %d connected", visitor.getUID()));
sockSubscr = new SocketSubscribed(session, hXRealIP, visitor, false);
} else if (hLocation.getPath().equals("/_all")) {