Fixed a silly bug in ChannelGroupFactory.getGroup()
This commit is contained in:
parent
49a0b8dbdb
commit
b97a26d176
@ -47,7 +47,10 @@ public class ChannelGroupFactory {
|
||||
}
|
||||
|
||||
g = new DefaultChannelGroup(groupName);
|
||||
g = groups.putIfAbsent(groupName, g);
|
||||
ChannelGroup oldGroup = groups.putIfAbsent(groupName, g);
|
||||
if (oldGroup != null) {
|
||||
g = oldGroup;
|
||||
}
|
||||
return g;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user