make FederationHandler.do_remotely_reject_invite async

This commit is contained in:
Richard van der Hoff 2020-02-03 16:19:18 +00:00
parent c3f296af32
commit 4286e429a7
2 changed files with 11 additions and 8 deletions

View file

@ -984,8 +984,10 @@ class RoomMemberMasterHandler(RoomMemberHandler):
"""
fed_handler = self.federation_handler
try:
ret = yield fed_handler.do_remotely_reject_invite(
remote_room_hosts, room_id, target.to_string(), content=content,
ret = yield defer.ensureDeferred(
fed_handler.do_remotely_reject_invite(
remote_room_hosts, room_id, target.to_string(), content=content,
)
)
return ret
except Exception as e: