[RMA] Bug Correct disposing logger appenders for NTGClient.
@@ -302,13 +302,10 @@ public final class NTGClient extends AbstractMINATCPService {
@Override
protected void disposeResources() {
- super.disposeResources();
if (externalDisposing) {
cancelCurrentReconnectFuture();
- return;
}
- if(loggingConfigurator != null)
- loggingConfigurator.registerLogger(this, getServiceName());
+ super.disposeResources();
}
private void cancelCurrentReconnectFuture() {
@@ -337,6 +334,9 @@ public final class NTGClient extends AbstractMINATCPService {
logger.error("Error during disposing resources", ex);
}
+ if(loggingConfigurator != null)
+ loggingConfigurator.createAndRegister(getServiceName(), this);
+
try {
internalStart();
} catch (Exception ex) {
