Fix indentation of sighup handler calling code (#19060)

This commit is contained in:
Andrew Morgan 2025-10-14 16:10:48 +02:00 committed by GitHub
parent ec7554b768
commit a4f9274107
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

1
changelog.d/19060.bugfix Normal file
View File

@ -0,0 +1 @@
Fix a bug introduced in 1.136.0 that would prevent Synapse from being able to be `reload`-ed more than once when running under systemd.

View File

@ -591,9 +591,9 @@ async def start(hs: "HomeServer", freeze: bool = True) -> None:
# we're not using systemd. # we're not using systemd.
sdnotify(b"RELOADING=1") sdnotify(b"RELOADING=1")
for sighup_callbacks in _instance_id_to_sighup_callbacks_map.values(): for sighup_callbacks in _instance_id_to_sighup_callbacks_map.values():
for func, args, kwargs in sighup_callbacks: for func, args, kwargs in sighup_callbacks:
func(*args, **kwargs) func(*args, **kwargs)
sdnotify(b"READY=1") sdnotify(b"READY=1")