Revert unnecessary change in Bootstrap
This commit is contained in:
parent
4f9b6c5bad
commit
9535401632
@ -41,7 +41,6 @@ import java.nio.channels.ClosedChannelException;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Queue;
|
||||
|
||||
public class ServerBootstrap {
|
||||
|
||||
@ -167,6 +166,13 @@ public class ServerBootstrap {
|
||||
return future;
|
||||
}
|
||||
|
||||
try {
|
||||
channel.config().setOptions(parentOptions);
|
||||
} catch (Exception e) {
|
||||
future.setFailure(e);
|
||||
return future;
|
||||
}
|
||||
|
||||
ChannelPipeline p = channel.pipeline();
|
||||
if (handler != null) {
|
||||
p.addLast(handler);
|
||||
@ -178,12 +184,6 @@ public class ServerBootstrap {
|
||||
future.setFailure(f.cause());
|
||||
return future;
|
||||
}
|
||||
try {
|
||||
channel.config().setOptions(parentOptions);
|
||||
} catch (Exception e) {
|
||||
future.setFailure(e);
|
||||
return future;
|
||||
}
|
||||
|
||||
if (!channel.isOpen()) {
|
||||
// Registration was successful but the channel was closed due to some failure in
|
||||
|
Loading…
Reference in New Issue
Block a user