Skip to content

Commit a4f9274

Browse files
Fix indentation of sighup handler calling code (#19060)
1 parent ec7554b commit a4f9274

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

changelog.d/19060.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.

synapse/app/_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,9 @@ async def _handle_sighup(*args: Any, **kwargs: Any) -> None:
591591
# we're not using systemd.
592592
sdnotify(b"RELOADING=1")
593593

594-
for sighup_callbacks in _instance_id_to_sighup_callbacks_map.values():
595-
for func, args, kwargs in sighup_callbacks:
596-
func(*args, **kwargs)
594+
for sighup_callbacks in _instance_id_to_sighup_callbacks_map.values():
595+
for func, args, kwargs in sighup_callbacks:
596+
func(*args, **kwargs)
597597

598598
sdnotify(b"READY=1")
599599

0 commit comments

Comments
 (0)