Skip to content

Commit

Permalink
Remove redundant double state update for storage pools events
Browse files Browse the repository at this point in the history
  • Loading branch information
KKoukiou authored and martinpitt committed Aug 2, 2021
1 parent 7853b16 commit 2832eab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libvirt-dbus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2832eab

Please sign in to comment.