summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-26 15:47:35 +0000
committerErik Johnston <erik@matrix.org>2015-02-26 15:47:35 +0000
commit59362454ddbcb3adf64d81da00dcd85cdb59a2e6 (patch)
tree4808e99b7cf9044616e7e87eecc9cb106c787b4b
parentFix presence tests (diff)
downloadsynapse-59362454ddbcb3adf64d81da00dcd85cdb59a2e6.tar.xz
Must update pending_transactions map before yield'ing
-rw-r--r--synapse/federation/transaction_queue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py
index 8f1acbe590..741a4e7a1a 100644
--- a/synapse/federation/transaction_queue.py
+++ b/synapse/federation/transaction_queue.py
@@ -224,6 +224,8 @@ class TransactionQueue(object):
         ]
 
         try:
+            self.pending_transactions[destination] = 1
+
             limiter = yield get_retry_limiter(
                 destination,
                 self._clock,
@@ -239,8 +241,6 @@ class TransactionQueue(object):
                 len(pending_failures)
             )
 
-            self.pending_transactions[destination] = 1
-
             logger.debug("TX [%s] Persisting transaction...", destination)
 
             transaction = Transaction.create_new(