diff options
Diffstat (limited to 'tutorius/TProbe.py')
-rw-r--r-- | tutorius/TProbe.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tutorius/TProbe.py b/tutorius/TProbe.py index b4b1826..d29ddda 100644 --- a/tutorius/TProbe.py +++ b/tutorius/TProbe.py @@ -336,9 +336,11 @@ class ProbeProxy: @param action Action to uninstall @param block Force a synchroneous dbus call if True """ - for (action, action_address) in self._actions.items(): - remote_call(self._probe.uninstall,(action_address,), block=block) - del self._actions[action] + for (this_action, this_address) in self._actions.items(): + if this_address == action_address: + remote_call(self._probe.uninstall,(action_address,), block=block) + del self._actions[this_action] + break def __update_event(self, event, callback, address): LOGGER.debug("ProbeProxy :: Registered event %s with address %s", str(hash(event)), str(address)) |