summary refs log tree commit diff
path: root/synapse/handlers/appservice.py
diff options
context:
space:
mode:
authorIlya Zhuravlev <whatever@xyz.is>2017-11-02 22:49:43 +0300
committerIlya Zhuravlev <whatever@xyz.is>2017-11-02 22:49:43 +0300
commit45fbe4ff67b7a7b51cbe474572947dc8e7b8c0da (patch)
tree212bf916139c5aa37cb4ed6b199c0912d2c1c1a1 /synapse/handlers/appservice.py
parentMerge pull request #2630 from matrix-org/luke/fix-rooms-in-group (diff)
downloadsynapse-45fbe4ff67b7a7b51cbe474572947dc8e7b8c0da.tar.xz
Fix appservices being backlogged and not receiving new events due to a bug in notify_interested_services
Diffstat (limited to 'synapse/handlers/appservice.py')
-rw-r--r--synapse/handlers/appservice.py5
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