From 2832eab8afa74e40077f4911b15035a324b65297 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Fri, 30 Jul 2021 13:42:59 +0200 Subject: [PATCH] Remove redundant double state update for storage pools events --- src/libvirt-dbus.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libvirt-dbus.js b/src/libvirt-dbus.js index 5ab3d26bd..818089fe8 100644 --- a/src/libvirt-dbus.js +++ b/src/libvirt-dbus.js @@ -1230,8 +1230,7 @@ function startEventMonitorStoragePools(connectionName) { switch (eventType) { case Enum.VIR_STORAGE_POOL_EVENT_DEFINED: case Enum.VIR_STORAGE_POOL_EVENT_CREATED: - store.dispatch(updateOrAddStoragePool({ connectionName, id: objPath })); - getStoragePool({ connectionName, id:objPath, updateOnly: true }); + getStoragePool({ connectionName, id:objPath }); break; case Enum.VIR_STORAGE_POOL_EVENT_STOPPED: storagePoolUpdateOrDelete(connectionName, objPath);