diff options
author | Dan Williams <dcbw@redhat.com> | 2007-05-14 01:33:14 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-05-14 01:33:14 (GMT) |
commit | 66dfd363ba7cc169ffaeafffe6c6b302c4779eeb (patch) | |
tree | 5eeae68d24e898fba43bc84cf44fb2ce823144e7 /services | |
parent | fddf1018852952e01064050da85642c5e32b9d99 (diff) |
Log the PS getting kicked off the bus
Diffstat (limited to 'services')
-rw-r--r-- | services/presence/presenceservice.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/services/presence/presenceservice.py b/services/presence/presenceservice.py index a6d94d9..6b67357 100644 --- a/services/presence/presenceservice.py +++ b/services/presence/presenceservice.py @@ -63,6 +63,9 @@ class PresenceService(ExportedGObject): bus = dbus.SessionBus() self._bus_name = dbus.service.BusName(_PRESENCE_SERVICE, bus=bus) + bus.add_signal_receiver(self._connection_disconnected_cb, + signal_name="Disconnected", + dbus_interface="org.freedesktop.DBus") # Create the Owner object objid = self._get_next_object_id() @@ -96,12 +99,9 @@ class PresenceService(ExportedGObject): ExportedGObject.__init__(self, self._bus_name, _PRESENCE_PATH) - def _activity_shared_cb(self, tp, activity, success, exc, async_cb, async_err_cb): - if success: - async_cb(activity.object_path()) - else: - del self._activities[activity.props.id] - async_err_cb(exc) + def _connection_disconnected_cb(self, foo=None): + """Log event when D-Bus kicks us off the bus for some reason""" + logging.debug("Disconnected from session bus!!!") def _server_status_cb(self, plugin, status, reason): # FIXME: figure out connection status when we have a salut plugin too |