BUG-3579: device disconnection cleanup
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / device / DeviceTransactionChainManagerProvider.java
index 2f1d4cda4f1f783d55a799ca970e606680e4e063..703fdf583d76e3cab61935afe0d09b087cf071eb 100644 (file)
@@ -48,7 +48,7 @@ public class DeviceTransactionChainManagerProvider {
                     if (!transactionChainManager.attemptToRegisterHandler(readyForNewTransactionChainHandler)) {
                         if (TransactionChainManager.TransactionChainManagerStatus.WORKING.equals(transactionChainManager.getTransactionChainManagerStatus())) {
                             LOG.info("There already exists one handler for connection described as {}. Connection is working will not try again.", nodeId);
-                            connectionContext.close();
+                            connectionContext.closeConnection(false);
                         } else {
                             LOG.info("There already exists one handler for connection described as {}. Transaction chain manager is in state {}. Will try again.",
                                     nodeId,