Skip to content
Snippets Groups Projects
Commit c27d6ad6 authored by Erik Johnston's avatar Erik Johnston
Browse files

Only start pushers when synapse has fully started

parent 46daf2d2
No related branches found
No related tags found
No related merge requests found
......@@ -442,11 +442,15 @@ def setup(config_options):
hs.start_listening()
hs.get_pusherpool().start()
hs.get_state_handler().start_caching()
hs.get_datastore().start_profiling()
hs.get_replication_layer().start_get_pdu_cache()
def on_start():
hs.get_pusherpool().start()
reactor.callWhenRunning(on_start)
return hs
......
......@@ -19,8 +19,6 @@ from twisted.internet import defer
from httppusher import HttpPusher
from synapse.push import PusherConfigException
from synapse.util.async import run_on_reactor
import logging
logger = logging.getLogger(__name__)
......@@ -50,7 +48,6 @@ class PusherPool:
@defer.inlineCallbacks
def start(self):
yield run_on_reactor()
pushers = yield self.store.get_all_pushers()
self._start_pushers(pushers)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment