Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2267 from matrix-org/erikj/missing_notifier
Browse files Browse the repository at this point in the history
Fix removing of pushers when using workers
  • Loading branch information
erikjohnston authored Jun 9, 2017
2 parents 1946867 + 2cac762 commit bfd6801
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synapse/replication/tcp/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def __init__(self, hs):
self.store = hs.get_datastore()
self.presence_handler = hs.get_presence_handler()
self.clock = hs.get_clock()
self.notifier = hs.get_notifier()

# Current connections.
self.connections = []
Expand Down Expand Up @@ -99,7 +100,7 @@ def __init__(self, hs):
if not hs.config.send_federation:
self.federation_sender = hs.get_federation_sender()

hs.get_notifier().add_replication_callback(self.on_notifier_poke)
self.notifier.add_replication_callback(self.on_notifier_poke)

# Keeps track of whether we are currently checking for updates
self.is_looping = False
Expand Down

0 comments on commit bfd6801

Please sign in to comment.