mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 11:59:21 -05:00
Retry make_join
This commit is contained in:
parent
03d415a6a2
commit
ff78eded01
@ -251,16 +251,21 @@ class FederationClient(FederationBase):
|
|||||||
defer.returnValue(signed_auth)
|
defer.returnValue(signed_auth)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def make_join(self, destination, room_id, user_id):
|
def make_join(self, destinations, room_id, user_id):
|
||||||
ret = yield self.transport_layer.make_join(
|
for destination in destinations:
|
||||||
destination, room_id, user_id
|
try:
|
||||||
)
|
ret = yield self.transport_layer.make_join(
|
||||||
|
destination, room_id, user_id
|
||||||
|
)
|
||||||
|
|
||||||
pdu_dict = ret["event"]
|
pdu_dict = ret["event"]
|
||||||
|
|
||||||
logger.debug("Got response to make_join: %s", pdu_dict)
|
logger.debug("Got response to make_join: %s", pdu_dict)
|
||||||
|
|
||||||
defer.returnValue(self.event_from_pdu_json(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
|
@defer.inlineCallbacks
|
||||||
def send_join(self, destination, pdu):
|
def send_join(self, destination, pdu):
|
||||||
|
Loading…
Reference in New Issue
Block a user