synchronized (channels) {
Set<String> keys = channels.keySet();
for (String key : keys) {
if (channels.get(key).getChannel() == ctx.getChannel()) {
gameController.removeGameListener(channels.get(key));
gameController.onRemoveClient(new RemoveClientEvent(key));
channels.remove(key);
break;
}
}
}