Fix compilation errors

This commit is contained in:
Trustin Lee 2012-05-23 11:47:37 -07:00
parent debaa6a72a
commit a2d57144b4
2 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,6 @@
*/ */
package io.netty.channel.group; package io.netty.channel.group;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.ChannelBuffer; import io.netty.buffer.ChannelBuffer;
import io.netty.buffer.ChannelBuffers; import io.netty.buffer.ChannelBuffers;
import io.netty.channel.Channel; import io.netty.channel.Channel;

View File

@ -116,7 +116,7 @@ public class DefaultChannelGroup extends AbstractSet<Channel> implements Channel
boolean added = map.putIfAbsent(channel.id(), channel) == null; boolean added = map.putIfAbsent(channel.id(), channel) == null;
if (added) { if (added) {
channel.addClosureListener(remover); channel.closeFuture().addListener(remover);
} }
return added; return added;
} }
@ -142,7 +142,7 @@ public class DefaultChannelGroup extends AbstractSet<Channel> implements Channel
return false; return false;
} }
c.removeClosureListener(remover); c.closeFuture().removeListener(remover);
return true; return true;
} }