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

Fix removing of pushers when using workers #2267

Merged
merged 1 commit into from
Jun 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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