summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-15 11:35:04 +0100
committerErik Johnston <erik@matrix.org>2015-05-15 11:35:04 +0100
commitaa32bd38e40cd8d69406fe74581290ad7fe34f35 (patch)
treef0e2e83189ae3f4f63a5c70656b7877089966da9 /synapse/storage/_base.py
parentSrsly. Don't use closures. Baaaaaad (diff)
downloadsynapse-aa32bd38e40cd8d69406fe74581290ad7fe34f35.tar.xz
Add a wait
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 0df1b46edc..5d86aa5cd4 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -301,7 +301,7 @@ class SQLBaseStore(object):
         self._get_event_cache = Cache("*getEvent*", keylen=3, lru=True,
                                       max_entries=hs.config.event_cache_size)
 
-        self._event_fetch_lock = threading.Lock()
+        self._event_fetch_lock = threading.Condition()
         self._event_fetch_list = []
         self._event_fetch_ongoing = 0