[RM]Bug Transfer session creation to method
@@ -166,7 +166,7 @@ public abstract class NettyClientService implements IInitiatorService {
logConfigurator.createIndividualAppender(getClass().getName() + "@" + Integer.toHexString(hashCode()),
serviceName);
- nettySession = new NettySession(this, logConfigurator);
+ nettySession = createSession();
nioEventLoopGroup = new NioEventLoopGroup();
connect();
@@ -175,6 +175,10 @@ public abstract class NettyClientService implements IInitiatorService {
changeStatus(ServiceStatus.ERROR, ex.getMessage(), ex);
}
}
+ @NotNull
+ protected NettySession createSession() {
+ return new NettySession(this, logConfigurator);
+ }
@Override
