Do not call setPipelineFactory() unnecessarily

This commit is contained in:
Trustin Lee 2011-12-15 17:01:11 +09:00
parent 414b18e704
commit 0897206e69

View File

@ -187,7 +187,6 @@ public class ConnectionlessBootstrap extends Bootstrap {
// Apply options.
boolean success = false;
try {
ch.getConfig().setPipelineFactory(getPipelineFactory());
ch.getConfig().setOptions(getOptions());
success = true;
} finally {
@ -300,7 +299,6 @@ public class ConnectionlessBootstrap extends Bootstrap {
Channel ch = getFactory().newChannel(pipeline);
boolean success = false;
try {
ch.getConfig().setPipelineFactory(getPipelineFactory());
ch.getConfig().setOptions(getOptions());
success = true;
} finally {