mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
inspection: handle duplicated conn-added signals
We might get 'conn-added' signals for the same connections more than once, so make sure to skip a new connection notification when the connection is already known.
This commit is contained in:
parent
ea5a6a3014
commit
7a696c8db8
@ -100,8 +100,8 @@ class vmmInspection(vmmGObject):
|
||||
def _process_queue_item(self, obj):
|
||||
if obj[0] == "conn_added":
|
||||
conn = obj[1]
|
||||
if conn and not (conn.is_remote()):
|
||||
uri = conn.get_uri()
|
||||
uri = conn.get_uri()
|
||||
if conn and not (conn.is_remote()) and not (uri in self._conns):
|
||||
self._conns[uri] = conn
|
||||
conn.connect("vm-added", self.vm_added)
|
||||
# No need to push the VMs of the newly added
|
||||
|
Loading…
Reference in New Issue
Block a user