Asynchronize set_activity_properties
This commit is contained in:
parent
118e039a8b
commit
7b40f9bf60
@ -574,12 +574,12 @@ class ServerPlugin(gobject.GObject):
|
|||||||
|
|
||||||
def set_activity_properties(self, act_id, props):
|
def set_activity_properties(self, act_id, props):
|
||||||
handle = self._activities.get(act_id)
|
handle = self._activities.get(act_id)
|
||||||
|
|
||||||
if not handle:
|
if not handle:
|
||||||
logging.debug("set_activity_properties: handle unkown")
|
logging.debug("set_activity_properties: handle unknown")
|
||||||
return
|
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):
|
def _activity_properties_changed_cb(self, room, properties):
|
||||||
for act_id, act_handle in self._activities.items():
|
for act_id, act_handle in self._activities.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user