aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-30 13:08:52 +0300
committerGravatar Vitaly Takmazov2016-06-30 13:08:52 +0300
commitd3a850e35880ae5493b3a197e0e8f58da99350f8 (patch)
tree69337fb2624f90cae26cd49e19ba0c5f82d4f382
parent4bc9b403ff3cac9ee115a788b18cffff520a9e3b (diff)
fix thread subscription
-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 5dfe8237..e87b96a5 100644
--- a/src/main/java/com/juick/ws/WebsocketComponent.java
+++ b/src/main/java/com/juick/ws/WebsocketComponent.java
@@ -79,7 +79,7 @@ public class WebsocketComponent extends TextWebSocketHandler {
sockSubscr.allReplies = true;
} else if (hLocation.getPath().matches("/\\d+$")) {
try {
- MID = Integer.parseInt(hLocation.getPath().substring(8));
+ MID = Integer.parseInt(hLocation.getPath().substring(1));
} catch (Exception e) {
}
if (MID > 0) {