Skip to content

Commit

Permalink
fix worker issue
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Jun 27, 2024
1 parent 35b9a68 commit 2c7974d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def register_servlets(client_resource: HttpServer, hs: "HomeServer") -> None:
password_policy.register_servlets(hs, client_resource)
knock.register_servlets(hs, client_resource)
appservice_ping.register_servlets(hs, client_resource)
if is_main_process:
if hs.config.server.enable_media_repo:
from synapse.rest.client import media

media.register_servlets(hs, client_resource)
Expand Down

0 comments on commit 2c7974d

Please sign in to comment.