diff options
author | Andrej Shadura <andrewsh@debian.org> | 2022-04-22 20:34:38 +0200 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2022-04-22 20:34:38 +0200 |
commit | 1b9b92888056ce7fd1f3a010ca7afd5c3963d44e (patch) | |
tree | 716cb361eb4332eca7b147f35c87ceb29b3ac958 /synapse/app/_base.py | |
parent | 02eb467b57bf21597094de52232c93d5f4a38b7d (diff) |
New upstream version 1.57.1
Diffstat (limited to 'synapse/app/_base.py')
-rw-r--r-- | synapse/app/_base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/app/_base.py b/synapse/app/_base.py index 3e59805b..37321f91 100644 --- a/synapse/app/_base.py +++ b/synapse/app/_base.py @@ -130,7 +130,7 @@ def start_reactor( appname: str, soft_file_limit: int, gc_thresholds: Optional[Tuple[int, int, int]], - pid_file: str, + pid_file: Optional[str], daemonize: bool, print_pidfile: bool, logger: logging.Logger, @@ -171,6 +171,8 @@ def start_reactor( # appearing to go backwards. with PreserveLoggingContext(): if daemonize: + assert pid_file is not None + if print_pidfile: print(pid_file) |