Do not call setPipelineFactory() unnecessarily
This commit is contained in:
parent
414b18e704
commit
0897206e69
@ -187,7 +187,6 @@ public class ConnectionlessBootstrap extends Bootstrap {
|
|||||||
// Apply options.
|
// Apply options.
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
try {
|
try {
|
||||||
ch.getConfig().setPipelineFactory(getPipelineFactory());
|
|
||||||
ch.getConfig().setOptions(getOptions());
|
ch.getConfig().setOptions(getOptions());
|
||||||
success = true;
|
success = true;
|
||||||
} finally {
|
} finally {
|
||||||
@ -300,7 +299,6 @@ public class ConnectionlessBootstrap extends Bootstrap {
|
|||||||
Channel ch = getFactory().newChannel(pipeline);
|
Channel ch = getFactory().newChannel(pipeline);
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
try {
|
try {
|
||||||
ch.getConfig().setPipelineFactory(getPipelineFactory());
|
|
||||||
ch.getConfig().setOptions(getOptions());
|
ch.getConfig().setOptions(getOptions());
|
||||||
success = true;
|
success = true;
|
||||||
} finally {
|
} finally {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user