summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-24 14:35:13 +0100
committerErik Johnston <erik@matrix.org>2014-08-24 14:35:13 +0100
commit2c4908ed268c7ae07af2b829c34d18ed5d743b81 (patch)
tree622550c77d6f1ce97ad6a6fef8f82f73cc93c96b
parentMerge branch 'hotfixes-0.0.1' of github.com:matrix-org/synapse (diff)
downloadsynapse-2c4908ed268c7ae07af2b829c34d18ed5d743b81.tar.xz
Ensure that we don't have duplicate hosts in the pdu destinations list
Diffstat (limited to '')
-rw-r--r--synapse/federation/replication.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/replication.py b/synapse/federation/replication.py
index 8030d0963f..cf634a64b2 100644
--- a/synapse/federation/replication.py
+++ b/synapse/federation/replication.py
@@ -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))