Handle timeouts slightly nicer.
This commit is contained in:
parent
34a7f0ca93
commit
9b18151104
|
@ -232,7 +232,11 @@ class FederationHandler(BaseHandler):
|
||||||
d = defer.Deferred()
|
d = defer.Deferred()
|
||||||
self.waiting_for_join_list.setdefault((joinee, room_id), []).append(d)
|
self.waiting_for_join_list.setdefault((joinee, room_id), []).append(d)
|
||||||
reactor.callLater(10, d.cancel)
|
reactor.callLater(10, d.cancel)
|
||||||
yield d
|
|
||||||
|
try:
|
||||||
|
yield d
|
||||||
|
except defer.CancelledError:
|
||||||
|
raise SynapseError("500", "Unable to join remote room")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
yield self.store.store_room(
|
yield self.store.store_room(
|
||||||
|
|
Loading…
Reference in New Issue