summary refs log tree commit diff
path: root/synapse/push/__init__.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2014-12-18 18:44:33 +0000
committerDavid Baker <dave@matrix.org>2014-12-18 18:44:33 +0000
commitfead431c181918558207f5115bd678a8984ce8d5 (patch)
treeca09835f837bbd80067c446824b0da467bff2c7e /synapse/push/__init__.py
parentMerge branch 'develop' into pushers (diff)
downloadsynapse-fead431c181918558207f5115bd678a8984ce8d5.tar.xz
If we didn't get any events, advance the token or we'll just keep not getting the same events again.
Diffstat (limited to 'synapse/push/__init__.py')
-rw-r--r--synapse/push/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py
index 5fe8719fe7..c5586be7b9 100644
--- a/synapse/push/__init__.py
+++ b/synapse/push/__init__.py
@@ -79,6 +79,7 @@ class Pusher(object):
                     single_event = c
                     break
             if not single_event:
+                self.last_token = chunk['end']
                 continue
 
             if not self.alive: