From d3a850e35880ae5493b3a197e0e8f58da99350f8 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 30 Jun 2016 13:08:52 +0300 Subject: fix thread subscription --- src/main/java/com/juick/ws/WebsocketComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com') 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) { -- cgit v1.2.3