summary refs log tree commit diff
path: root/synapse/app/synchrotron.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-06-06 16:20:54 +0100
committerMark Haines <mjark@negativecurvature.net>2016-06-06 16:20:54 +0100
commit87f60e705345ca94f222d7d6b0757a31b7b23f1d (patch)
tree175f9ffe10f3f87d46525461ff25d3762ed5df88 /synapse/app/synchrotron.py
parent.values() returns list of sets (diff)
parentYield on the sleeps intended to backoff replication (diff)
downloadsynapse-87f60e705345ca94f222d7d6b0757a31b7b23f1d.tar.xz
Merge pull request #844 from matrix-org/markjh/yield_on_sleep
Yield on the sleeps intended to backoff replication
Diffstat (limited to 'synapse/app/synchrotron.py')
-rw-r--r--synapse/app/synchrotron.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/app/synchrotron.py b/synapse/app/synchrotron.py
index aa81e1c5da..7273055cc1 100644
--- a/synapse/app/synchrotron.py
+++ b/synapse/app/synchrotron.py
@@ -443,7 +443,7 @@ class SynchrotronServer(HomeServer):
                 notify(result)
             except:
                 logger.exception("Error replicating from %r", replication_url)
-                sleep(5)
+                yield sleep(5)
 
     def build_presence_handler(self):
         return SynchrotronPresence(self)