Fixed a silly bug in ChannelGroupFactory.getGroup()

This commit is contained in:
Trustin Lee 2008-12-03 00:21:41 +00:00
parent 49a0b8dbdb
commit b97a26d176

View File

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