From 6868d53fe919e041772428a1fb61ce3cef639e83 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 21 Feb 2019 15:58:15 +0000 Subject: [PATCH] bail out early in on_new_receipts if no pushers --- synapse/push/pusherpool.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synapse/push/pusherpool.py b/synapse/push/pusherpool.py index 5a4e73ccd6..99f499a60e 100644 --- a/synapse/push/pusherpool.py +++ b/synapse/push/pusherpool.py @@ -155,6 +155,10 @@ class PusherPool: @defer.inlineCallbacks def on_new_receipts(self, min_stream_id, max_stream_id, affected_room_ids): + if not self.pushers: + # nothing to do here. + return + try: # Need to subtract 1 from the minimum because the lower bound here # is not inclusive