bail out early in on_new_receipts if no pushers

pull/4767/head
Richard van der Hoff 2019-02-21 15:58:15 +00:00
parent 68af15637b
commit 6868d53fe9
1 changed files with 4 additions and 0 deletions

View File

@ -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