diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-11-06 11:42:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 11:42:07 +0000 |
commit | fb56dfdccd129ecdc07effbb6e2e18d3b304d821 (patch) | |
tree | 18720ae80df86bbcfaa7ec98e1f6c6a78ae9bf37 /synapse/app | |
parent | Add an admin API for users' media statistics (#8700) (diff) | |
download | synapse-fb56dfdccd129ecdc07effbb6e2e18d3b304d821.tar.xz |
Fix SIGHUP handler (#8697)
Fixes: ``` builtins.TypeError: _reload_logging_config() takes 1 positional argument but 2 were given ```
Diffstat (limited to 'synapse/app')
-rw-r--r-- | synapse/app/_base.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/app/_base.py b/synapse/app/_base.py index f6f7b2bf42..9c8dc785c6 100644 --- a/synapse/app/_base.py +++ b/synapse/app/_base.py @@ -49,7 +49,6 @@ def register_sighup(func, *args, **kwargs): Args: func (function): Function to be called when sent a SIGHUP signal. - Will be called with a single default argument, the homeserver. *args, **kwargs: args and kwargs to be passed to the target function. """ _sighup_callbacks.append((func, args, kwargs)) @@ -251,13 +250,13 @@ def start(hs: "synapse.server.HomeServer", listeners: Iterable[ListenerConfig]): sdnotify(b"RELOADING=1") for i, args, kwargs in _sighup_callbacks: - i(hs, *args, **kwargs) + i(*args, **kwargs) sdnotify(b"READY=1") signal.signal(signal.SIGHUP, handle_sighup) - register_sighup(refresh_certificate) + register_sighup(refresh_certificate, hs) # Load the certificate from disk. refresh_certificate(hs) |