diff options
author | mike <michael.jmontcalm@gmail.com> | 2009-11-19 16:15:52 (GMT) |
---|---|---|
committer | mike <michael.jmontcalm@gmail.com> | 2009-11-24 04:21:56 (GMT) |
commit | 3327c20738be6c334d7464f159e26bb72c97a419 (patch) | |
tree | ab99a77036596b121f35c0fde23630d9c7664a15 /tutorius | |
parent | 6a390f667cca2b78ede0db7ca4877201462b886e (diff) |
LP 448319 : Adding tests for translator, properties, constraints and probes, fixing Probe Proxy's uninstall
Diffstat (limited to 'tutorius')
-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)) |