diff options
author | Ilya Zhuravlev <whatever@xyz.is> | 2017-11-02 22:49:43 +0300 |
---|---|---|
committer | Ilya Zhuravlev <whatever@xyz.is> | 2017-11-02 22:49:43 +0300 |
commit | 45fbe4ff67b7a7b51cbe474572947dc8e7b8c0da (patch) | |
tree | 212bf916139c5aa37cb4ed6b199c0912d2c1c1a1 | |
parent | Merge pull request #2630 from matrix-org/luke/fix-rooms-in-group (diff) | |
download | synapse-45fbe4ff67b7a7b51cbe474572947dc8e7b8c0da.tar.xz |
Fix appservices being backlogged and not receiving new events due to a bug in notify_interested_services
-rw-r--r-- | synapse/handlers/appservice.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py index 05af54d31b..5ce752a196 100644 --- a/synapse/handlers/appservice.py +++ b/synapse/handlers/appservice.py @@ -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 |