diff options
author | Vitaly Takmazov | 2016-06-30 13:08:52 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-06-30 13:08:52 +0300 |
commit | d3a850e35880ae5493b3a197e0e8f58da99350f8 (patch) | |
tree | 69337fb2624f90cae26cd49e19ba0c5f82d4f382 /src/main/java/com/juick | |
parent | 4bc9b403ff3cac9ee115a788b18cffff520a9e3b (diff) |
fix thread subscription
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r-- | src/main/java/com/juick/ws/WebsocketComponent.java | 2 |
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) { |