Store the 'last_token' in the db, even if we processed no events

This commit is contained in:
Erik Johnston 2015-08-19 10:08:31 +01:00
parent a45ec7c651
commit 78fa346b07

View File

@ -294,6 +294,12 @@ class Pusher(object):
if not single_event:
self.last_token = chunk['end']
logger.debug("Event stream timeout for pushkey %s", self.pushkey)
yield self.store.update_pusher_last_token(
self.app_id,
self.pushkey,
self.user_name,
self.last_token
)
return
if not self.alive: