summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorSiegfried-Angel Gevatter Pujals <siegfried@gevatter.com>2012-02-07 22:37:40 +0100
committerSiegfried-Angel Gevatter Pujals <siegfried@gevatter.com>2012-02-07 22:37:40 +0100
commit99eac2e168eafd8026322696b37cd0e00cef0744 (patch)
tree15a5cf4a175ffab3641390e360e4baf49da219bf /python
parent3bd7732529dd266c7bb2b9729c162f4d2998f471 (diff)
downloadzeitgeist-99eac2e168eafd8026322696b37cd0e00cef0744.tar.gz
Add test case for monitor re-connection
Diffstat (limited to 'python')
-rw-r--r--python/client.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/client.py b/python/client.py
index 4801cdd9..df54779b 100644
--- a/python/client.py
+++ b/python/client.py
@@ -181,15 +181,15 @@ class _DBusInterface(object):
# Listen to (dis)connection notifications, for connect_exit and connect_join
def name_owner_changed(connection_name):
if connection_name == "":
- callbacks = self._disconnect_callbacks
self.__methods = self.__signals = None
+ for callback in self._disconnect_callbacks:
+ callback()
else:
if not self._reconnect_when_needed:
return
self.reconnect()
- callbacks = self._reconnect_callbacks
- for callback in callbacks:
- callback()
+ for callback in self._reconnect_callbacks:
+ callback()
get_bus().watch_name_owner(self.__iface.requested_bus_name,
name_owner_changed)