Do not call setPipelineFactory() unnecessarilly

This commit is contained in:
Trustin Lee 2011-12-15 17:01:37 +09:00
parent 62446827df
commit a6f5985ace

View File

@ -185,7 +185,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 {
@ -298,7 +297,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 {