Retry make_join

This commit is contained in:
Erik Johnston 2015-02-04 13:55:10 +00:00
parent 03d415a6a2
commit ff78eded01

View File

@ -251,7 +251,9 @@ class FederationClient(FederationBase):
defer.returnValue(signed_auth)
@defer.inlineCallbacks
def make_join(self, destination, room_id, user_id):
def make_join(self, destinations, room_id, user_id):
for destination in destinations:
try:
ret = yield self.transport_layer.make_join(
destination, room_id, user_id
)
@ -261,6 +263,9 @@ class FederationClient(FederationBase):
logger.debug("Got response to make_join: %s", pdu_dict)
defer.returnValue(self.event_from_pdu_json(pdu_dict))
break
except Exception as e:
logger.warn("Failed to make_join via %s", destination)
@defer.inlineCallbacks
def send_join(self, destination, pdu):