Copy the resolver configuration when cloning Bootstrap

Motivation:

Bootstrap.clone() does not copy the resolver configuration.

Modifications:

Copy the resolver configuration when cloning.

Result:

Bug fixed
This commit is contained in:
Trustin Lee 2014-12-01 19:48:59 +09:00
parent 7b39968f57
commit 9acf4a800a

View File

@ -58,6 +58,7 @@ public class Bootstrap extends AbstractBootstrap<Bootstrap, Channel> {
private Bootstrap(Bootstrap bootstrap) {
super(bootstrap);
resolver = bootstrap.resolver;
remoteAddress = bootstrap.remoteAddress;
}