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 2769ad428a
commit 46ef370ee1

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;
}