summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-15 16:36:03 +0100
committerErik Johnston <erik@matrix.org>2015-05-15 16:36:03 +0100
commit9ff7f66a2be6d3f0542b69e784b400df349869ff (patch)
tree6d0d5dceb30a0d8a7570c426b3729ae7e9603d2f /synapse
parentDon't completely drain the list (diff)
downloadsynapse-9ff7f66a2be6d3f0542b69e784b400df349869ff.tar.xz
init j
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/events.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 6ee2e9a485..f21364606d 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -506,6 +506,7 @@ class EventsStore(SQLBaseStore):
             try:
                 with self._event_fetch_lock:
                     tot = 0
+                    j = 0
                     for j, lst in enumerate(self._event_fetch_list):
                         if tot > 200:
                             break