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); }; }