Fix appservices being backlogged and not receiving new events due to a bug in notify_interested_services

pull/2631/head
Ilya Zhuravlev 2017-11-02 22:49:43 +03:00
parent f851bc8182
commit 45fbe4ff67
1 changed files with 1 additions and 4 deletions

View File

@ -74,7 +74,7 @@ class ApplicationServicesHandler(object):
limit = 100
while True:
upper_bound, events = yield self.store.get_new_events_for_appservice(
upper_bound, limit
self.current_max, limit
)
if not events:
@ -105,9 +105,6 @@ class ApplicationServicesHandler(object):
)
yield self.store.set_appservice_last_pos(upper_bound)
if len(events) < limit:
break
finally:
self.is_processing = False