Fix compilation errors
This commit is contained in:
parent
debaa6a72a
commit
a2d57144b4
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user