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.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.Queue;
|
|
||||||
|
|
||||||
public class ServerBootstrap {
|
public class ServerBootstrap {
|
||||||
|
|
||||||
@ -167,6 +166,13 @@ public class ServerBootstrap {
|
|||||||
return future;
|
return future;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
channel.config().setOptions(parentOptions);
|
||||||
|
} catch (Exception e) {
|
||||||
|
future.setFailure(e);
|
||||||
|
return future;
|
||||||
|
}
|
||||||
|
|
||||||
ChannelPipeline p = channel.pipeline();
|
ChannelPipeline p = channel.pipeline();
|
||||||
if (handler != null) {
|
if (handler != null) {
|
||||||
p.addLast(handler);
|
p.addLast(handler);
|
||||||
@ -178,12 +184,6 @@ public class ServerBootstrap {
|
|||||||
future.setFailure(f.cause());
|
future.setFailure(f.cause());
|
||||||
return future;
|
return future;
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
channel.config().setOptions(parentOptions);
|
|
||||||
} catch (Exception e) {
|
|
||||||
future.setFailure(e);
|
|
||||||
return future;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!channel.isOpen()) {
|
if (!channel.isOpen()) {
|
||||||
// Registration was successful but the channel was closed due to some failure in
|
// Registration was successful but the channel was closed due to some failure in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user