Close missing resources when netconf-topolgy goes down
[netconf.git] / netconf / netconf-topology / src / main / java / org / opendaylight / netconf / topology / impl / NetconfTopologyImpl.java
index 9b02f0b3d15c82904e4f52c9b0931eabcc1b5b01..00da8fd10e824f76b1a6f27fa11f939388ad22a4 100644 (file)
@@ -64,7 +64,7 @@ public class NetconfTopologyImpl extends AbstractNetconfTopology implements Data
     public void close() throws Exception {
         // close all existing connectors, delete whole topology in datastore?
         for (NetconfConnectorDTO connectorDTO : activeConnectors.values()) {
-            connectorDTO.getCommunicator().close();
+            connectorDTO.close();
         }
         activeConnectors.clear();