Replace deprecated Futures.addCallback by the newer version
[netconf.git] / netconf / netconf-topology / src / main / java / org / opendaylight / netconf / topology / impl / NetconfConnectorFactoryImpl.java
index c925a8828f012ceaa3ca7d4e6315cdb37205ba55..c644286504d6248fb034bffd700df7b455c42126 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.netconf.topology.impl;
 import com.google.common.util.concurrent.CheckedFuture;
 import com.google.common.util.concurrent.FutureCallback;
 import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.MoreExecutors;
 import javax.annotation.Nullable;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
 import org.opendaylight.controller.md.sal.binding.api.WriteTransaction;
@@ -90,7 +91,7 @@ public class NetconfConnectorFactoryImpl implements NetconfConnectorFactory {
             public void onFailure(final Throwable throwable) {
                 LOG.error("Node {} creation failed: {}", instanceName, throwable);
             }
-        });
+        }, MoreExecutors.directExecutor());
         return node;
     }
 }
\ No newline at end of file