mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Ensure that we don't have duplicate hosts in the pdu destinations list
This commit is contained in:
parent
4521c2d277
commit
2c4908ed26
@ -509,10 +509,10 @@ class _TransactionQueue(object):
|
|||||||
# a transaction in progress. If we do, stick it in the pending_pdus
|
# a transaction in progress. If we do, stick it in the pending_pdus
|
||||||
# table and we'll get back to it later.
|
# table and we'll get back to it later.
|
||||||
|
|
||||||
destinations = [
|
destinations = set([
|
||||||
d for d in pdu.destinations
|
d for d in pdu.destinations
|
||||||
if d != self.server_name
|
if d != self.server_name
|
||||||
]
|
])
|
||||||
|
|
||||||
logger.debug("Sending to: %s", str(destinations))
|
logger.debug("Sending to: %s", str(destinations))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user