Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-14 20:17:33 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-05-14 20:17:33 (GMT)
commit9b978f014f44d69911e566e5ee9268a76ae7d2e4 (patch)
tree7c2aa43bda7950803e618ca986f81304d3e5ebc2 /services
parent9a83c2b0fd07020256239dee2a5eb5e763cc5aac (diff)
Fix setting owner OLPC properties
Diffstat (limited to 'services')
-rw-r--r--services/presence/server_plugin.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py
index 82f2323..ea2ab22 100644
--- a/services/presence/server_plugin.py
+++ b/services/presence/server_plugin.py
@@ -178,7 +178,8 @@ class ServerPlugin(gobject.GObject):
self._set_self_alias()
if properties.has_key("color") or properties.has_key("ip4-address"):
- self._set_self_olpc_properties()
+ if self._conn_status == CONNECTION_STATUS_CONNECTED:
+ self._set_self_olpc_properties()
def _owner_icon_changed_cb(self, owner, icon):
"""Owner has changed their icon, forward to network"""
@@ -469,8 +470,6 @@ class ServerPlugin(gobject.GObject):
def _set_self_olpc_properties(self):
"""Set color and key on our Telepathy server identity"""
- if self._conn_status != CONNECTION_STATUS_CONNECTED:
- return
props = {}
props['color'] = self._owner.props.color
props['key'] = dbus.ByteArray(self._owner.props.key)