Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/service.py
diff options
context:
space:
mode:
authorerick <erick@sugar-dev-erick.(none)>2009-11-01 15:19:01 (GMT)
committer Vincent Vinet <vince.vinet@gmail.com>2009-11-09 15:11:11 (GMT)
commitb7012490ac4db920ffc4abc231ce987c9adb8fc4 (patch)
treeae33a264fbe38888b5ca650e0163c2cb1fe734de /tutorius/service.py
parenta7ca31d17194539f7b4428eef257b5ba8582c364 (diff)
Changed the path name of probes on dbus to make them unique per activity, made the service unregistering call synchronous because the bus would close too fast otherwise, added complete support in probe manager for multiple instances of the same activity
Diffstat (limited to 'tutorius/service.py')
-rw-r--r--tutorius/service.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tutorius/service.py b/tutorius/service.py
index 4be1f41..8694cb5 100644
--- a/tutorius/service.py
+++ b/tutorius/service.py
@@ -129,7 +129,11 @@ class ServiceProxy:
@param unique_id The unique identification associated to this
process
"""
- remote_call(self._service.unregister_probe, (unique_id), block=False)
+ # We make it synchronous because otherwise on closing,
+ # activities kill the dbus session bus too fast for the
+ # asynchronous call to be completed
+ self._service.unregister_probe(unique_id)
+
if __name__ == "__main__":
import dbus.mainloop.glib