summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/handlers/profile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py
index ec9cb1f50c..278f131d5e 100644
--- a/synapse/handlers/profile.py
+++ b/synapse/handlers/profile.py
@@ -282,6 +282,8 @@ class MasterProfileHandler(WorkerProfileHandler):
     def __init__(self, hs):
         super(MasterProfileHandler, self).__init__(hs)
 
+        assert hs.config.worker_app is None
+
         self.clock.looping_call(
             self._start_update_remote_profile_cache, self.PROFILE_UPDATE_MS,
         )