summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-07-22 15:22:14 +0100
committerErik Johnston <erik@matrix.org>2019-07-22 15:22:14 +0100
commit80cfad233efc6b03c75ab5496db7079466eeb894 (patch)
treefbf153921c3d7dec38961dcb332b890b5c169342 /synapse/app/homeserver.py
parentNewsfile (diff)
downloadsynapse-80cfad233efc6b03c75ab5496db7079466eeb894.tar.xz
Call startup commands as system triggers.
This helps ensures that we only consider ourselves "up" once all the
startup functions have completed.
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 0c075cb3f1..34c3f5ee99 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -447,7 +447,7 @@ def setup(config_options):
                 reactor.stop()
             sys.exit(1)
 
-    reactor.callWhenRunning(start)
+    reactor.addSystemEventTrigger("before", "startup", start)
 
     return hs