From 08b23db5c6f14edbed59d47e1f1bac335661d256 Mon Sep 17 00:00:00 2001 From: Gravit Date: Mon, 23 Nov 2020 22:30:04 +0700 Subject: [PATCH] [FIX] Small fix --- .../java/pro/gravit/launchserver/socket/WebSocketService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/WebSocketService.java b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/WebSocketService.java index 79c24113..71c5da51 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/WebSocketService.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/WebSocketService.java @@ -73,9 +73,9 @@ public WebSocketService(ChannelGroup channels, LaunchServer server) { public void forEachActiveChannels(BiConsumer callback) { for(Channel channel : channels) { - if (channel == null || channel.pipeline() == null) return; + if (channel == null || channel.pipeline() == null) continue; WebSocketFrameHandler wsHandler = channel.pipeline().get(WebSocketFrameHandler.class); - if (wsHandler == null) return; + if (wsHandler == null) continue; callback.accept(channel, wsHandler); }; }