summary refs log tree commit diff
path: root/synapse/storage/databases/main/session.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage/databases/main/session.py')
-rw-r--r--synapse/storage/databases/main/session.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/session.py b/synapse/storage/databases/main/session.py
index 172f27d109..5a97120437 100644
--- a/synapse/storage/databases/main/session.py
+++ b/synapse/storage/databases/main/session.py
@@ -48,7 +48,7 @@ class SessionStore(SQLBaseStore):
         super().__init__(database, db_conn, hs)
 
         # Create a background job for culling expired sessions.
-        if hs.config.run_background_tasks:
+        if hs.config.worker.run_background_tasks:
             self._clock.looping_call(self._delete_expired_sessions, 30 * 60 * 1000)
 
     async def create_session(