Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-06-11 21:46:50 (GMT)
committer Simon McVittie <simon.mcvittie@collabora.co.uk>2007-06-11 21:46:50 (GMT)
commit6d8ba0207387fe69ef472e90f9b792abd10d304a (patch)
treebab2298228ff6243f02a4f4fcea9fc15a3578d70
parentef8132d1ac31469ea0a046586b3d05d9afbccffc (diff)
presenceservice: cope with self._conn_matches being None, as it is initially
-rw-r--r--src/presenceservice.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/presenceservice.py b/src/presenceservice.py
index 9ef749f..9ad5141 100644
--- a/src/presenceservice.py
+++ b/src/presenceservice.py
@@ -237,8 +237,9 @@ class PresenceService(ExportedGObject):
del self._conn_matches[conn]
except KeyError:
pass
- for match in matches:
- match.remove()
+ if matches is not None:
+ for match in matches:
+ match.remove()
def get_buddy(self, objid):
buddy = self._buddies.get(objid)