0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-16 06:51:46 +01:00

Handle timeouts slightly nicer.

This commit is contained in:
Erik Johnston 2014-09-03 19:13:41 +01:00
parent 34a7f0ca93
commit 9b18151104

View file

@ -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)
try:
yield d
except defer.CancelledError:
raise SynapseError("500", "Unable to join remote room")
try:
yield self.store.store_room(