From 4c1713d9d51769a7281048fb3bd99da35a3977fa Mon Sep 17 00:00:00 2001 From: erick Date: Sun, 01 Nov 2009 15:19:01 +0000 Subject: 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 --- (limited to 'tutorius/service.py') 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 -- cgit v0.9.1