Ensure that we don't have duplicate hosts in the pdu destinations list

paul/schema_breaking_changes
Erik Johnston 2014-08-24 14:35:13 +01:00
parent 4521c2d277
commit 2c4908ed26
1 changed files with 2 additions and 2 deletions

View File

@ -509,10 +509,10 @@ class _TransactionQueue(object):
# a transaction in progress. If we do, stick it in the pending_pdus
# table and we'll get back to it later.
destinations = [
destinations = set([
d for d in pdu.destinations
if d != self.server_name
]
])
logger.debug("Sending to: %s", str(destinations))