Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sugar/presence/presenceservice.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sugar/presence/presenceservice.py b/src/sugar/presence/presenceservice.py
index 9f51c1a..862d6d0 100644
--- a/src/sugar/presence/presenceservice.py
+++ b/src/sugar/presence/presenceservice.py
@@ -198,6 +198,12 @@ class PresenceService(gobject.GObject):
connection_manager = get_connection_manager()
account_path, connection = \
connection_manager.get_preferred_connection()
+
+ if connection is None:
+ self.emit('activity-shared', False, None,
+ 'No active connection available')
+ return
+
shared_activity = Activity(account_path, connection,
properties=properties)
self._activity_cache = shared_activity