[FIX] Small fix

This commit is contained in:
Gravit 2020-11-23 22:30:04 +07:00
parent f971356955
commit 08b23db5c6
No known key found for this signature in database
GPG key ID: 98A079490768CCE5

View file

@ -73,9 +73,9 @@ public WebSocketService(ChannelGroup channels, LaunchServer server) {
public void forEachActiveChannels(BiConsumer<Channel, WebSocketFrameHandler> callback) { public void forEachActiveChannels(BiConsumer<Channel, WebSocketFrameHandler> callback) {
for(Channel channel : channels) { 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); WebSocketFrameHandler wsHandler = channel.pipeline().get(WebSocketFrameHandler.class);
if (wsHandler == null) return; if (wsHandler == null) continue;
callback.accept(channel, wsHandler); callback.accept(channel, wsHandler);
}; };
} }