Skip to content
Snippets Groups Projects
Commit 9b181511 authored by Erik Johnston's avatar Erik Johnston
Browse files

Handle timeouts slightly nicer.

parent 34a7f0ca
No related branches found
No related tags found
No related merge requests found
......@@ -232,7 +232,11 @@ class FederationHandler(BaseHandler):
d = defer.Deferred()
self.waiting_for_join_list.setdefault((joinee, room_id), []).append(d)
reactor.callLater(10, d.cancel)
yield d
try:
yield d
except defer.CancelledError:
raise SynapseError("500", "Unable to join remote room")
try:
yield self.store.store_room(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment