diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-02-03 16:19:18 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-02-03 16:19:18 +0000 |
commit | 4286e429a7359cdeb670fdd63839d0b73836026b (patch) | |
tree | efe770789aba8032e3687afa469966d84aa81978 /synapse/handlers/room_member.py | |
parent | make FederationHandler._check_for_soft_fail async (diff) | |
download | synapse-4286e429a7359cdeb670fdd63839d0b73836026b.tar.xz |
make FederationHandler.do_remotely_reject_invite async
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r-- | synapse/handlers/room_member.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index ce8150db6e..4260426369 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -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: |