Update the end_token correctly, otherwise the token doesn't advance and the client gets duplicate events

pull/150/head
Mark Haines 2015-05-12 11:54:18 +01:00
parent 5e4ba463b7
commit 2551b6645d
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ class Notifier(object):
user, getattr(from_token, keyname), limit,
)
events.extend(stuff)
end_token = from_token.copy_and_replace(keyname, new_key)
end_token = end_token.copy_and_replace(keyname, new_key)
if events:
defer.returnValue((events, (from_token, end_token)))