aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'juick-ws/src/main/java/com/juick')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java
index bca1b27a..bca5c804 100644
--- a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java
+++ b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java
@@ -72,12 +72,7 @@ public class WebsocketComponent extends TextWebSocketHandler implements Protocol
if (hash.length() == 16) {
visitor = userService.getUserByHash(hash);
} else {
- try {
- logger.info("wrong hash for {} from {}", visitor.getUid(), hXRealIP);
- session.close(new CloseStatus(403, "Forbidden"));
- } catch (IOException e) {
- logger.warn("ws error", e);
- }
+ logger.info("wrong hash for {} from {}", visitor.getUid(), hXRealIP);
}
break;
}