From 0a427dbd5acbcfee8874c30fb0a1c16473f1b93d Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 19 Nov 2009 16:15:52 +0000 Subject: LP 448319 : Adding tests for translator, properties, constraints and probes, fixing Probe Proxy's uninstall --- (limited to 'tutorius/TProbe.py') 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)) -- cgit v0.9.1