summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage')
-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