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-04-12 21:03:30 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-04-12 21:03:30 (GMT)
commit7b40f9bf60a0529e0fb06f9b6065c8b429009f52 (patch)
tree517a3e3ddb64bbf613ec3cbdf2c05ae583ef4cfb /services
parent118e039a8b527822d170605475aa282d53963179 (diff)
Asynchronize set_activity_properties
Diffstat (limited to 'services')
-rw-r--r--services/presence/server_plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py
index 78e8a3e..b7210aa 100644
--- a/services/presence/server_plugin.py
+++ b/services/presence/server_plugin.py
@@ -574,12 +574,12 @@ class ServerPlugin(gobject.GObject):
def set_activity_properties(self, act_id, props):
handle = self._activities.get(act_id)
-
if not handle:
- logging.debug("set_activity_properties: handle unkown")
+ logging.debug("set_activity_properties: handle unknown")
return
-
- self._conn[CONN_INTERFACE_ACTIVITY_PROPERTIES].SetProperties(handle, props)
+ self._conn[CONN_INTERFACE_ACTIVITY_PROPERTIES].SetProperties(handle, props,
+ reply_handler=self._ignore_success_cb,
+ error_handler=lambda *args: self._log_error_cb("activity properties", *args))
def _activity_properties_changed_cb(self, room, properties):
for act_id, act_handle in self._activities.items():