mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Small fix
This commit is contained in:
parent
f971356955
commit
08b23db5c6
1 changed files with 2 additions and 2 deletions
|
@ -73,9 +73,9 @@ public WebSocketService(ChannelGroup channels, LaunchServer server) {
|
|||
|
||||
public void forEachActiveChannels(BiConsumer<Channel, WebSocketFrameHandler> 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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue