Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
Remove signal receivers when vm is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkin committed Jun 14, 2017
1 parent ac7910e commit 583cf6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qubesdbus/domain_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ def RemoveDomain(self, vm_dbus_path, execute=False):
return False
for vm in self.managed_objects:
# pylint: disable=protected-access
if vm._object_path == vm_dbus_path:
obj_path = vm._object_path # type: dbus.ObjectPath
if obj_path == vm_dbus_path:
for signal_matcher in self.signal_matches[obj_path]:
self.bus.remove_signal_receiver(signal_matcher)
vm.remove_from_connection()
self.managed_objects.remove(vm)
self.DomainRemoved(INTERFACE, vm._object_path)
Expand Down

0 comments on commit 583cf6d

Please sign in to comment.