Don't try to share the activity if we couldn't find a suitable connection #2217
This commit is contained in:
parent
e398f58e92
commit
a2b8518489
@ -198,6 +198,12 @@ class PresenceService(gobject.GObject):
|
|||||||
connection_manager = get_connection_manager()
|
connection_manager = get_connection_manager()
|
||||||
account_path, connection = \
|
account_path, connection = \
|
||||||
connection_manager.get_preferred_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,
|
shared_activity = Activity(account_path, connection,
|
||||||
properties=properties)
|
properties=properties)
|
||||||
self._activity_cache = shared_activity
|
self._activity_cache = shared_activity
|
||||||
|
Loading…
Reference in New Issue
Block a user