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

This commit is contained in:
Ilya Zhuravlev 2017-11-02 22:49:43 +03:00
parent f851bc8182
commit 45fbe4ff67

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