switch to DeviceTransaction.commit()
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / device / DeviceTransactionManagerImpl.java
index 160e0e147a3bf724a155fb79154f80b17f7a6a10..cf48fba8741365a14aa54430353b67541297c7b3 100644 (file)
@@ -164,7 +164,7 @@ public class DeviceTransactionManagerImpl implements DeviceTransactionManager {
             } catch (InterruptedException | ExecutionException | TimeoutException e) {
                 LOG.error("Exception thrown while reading data from device {}! IID: {}", deviceId, path, e);
             } finally {
-                deviceTx.submit(GET_DATA_SUBMIT_TIMEOUT, GET_DATA_SUBMIT_TIME_UNIT);
+                deviceTx.commit(GET_DATA_SUBMIT_TIMEOUT, GET_DATA_SUBMIT_TIME_UNIT);
             }
         } else {
             LOG.error("Could not obtain transaction for device {}!", deviceId);