summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2023-04-13 13:28:55 +0200
committerGitHub <noreply@github.com>2023-04-13 13:28:55 +0200
commitbe36600327b47b93f8462bdf343c4c12f6c966b9 (patch)
tree59e7b7d728d662141d36e4f031fbb9e55bc7df54 /synapse/rest/client
parentThrow if the appservice config list is the wrong type (#15425) (diff)
downloadsynapse-be36600327b47b93f8462bdf343c4c12f6c966b9.tar.xz
Disable loading `RefreshTokenServlet` on workers (#15428)
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/login.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/rest/client/login.py b/synapse/rest/client/login.py
index b7e9c8f6b5..32c2f5ce0c 100644
--- a/synapse/rest/client/login.py
+++ b/synapse/rest/client/login.py
@@ -670,7 +670,10 @@ class CasTicketServlet(RestServlet):
 
 def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None:
     LoginRestServlet(hs).register(http_server)
-    if hs.config.registration.refreshable_access_token_lifetime is not None:
+    if (
+        hs.config.worker.worker_app is None
+        and hs.config.registration.refreshable_access_token_lifetime is not None
+    ):
         RefreshTokenServlet(hs).register(http_server)
     SsoRedirectServlet(hs).register(http_server)
     if hs.config.cas.cas_enabled: