Don't reuse name

erikj/notifier_debug
Erik Johnston 2015-06-18 10:57:42 +01:00
parent c59e904839
commit 9bc36b7f31
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class _NotificationListener(object):
self.deferred = deferred
self.created = int(time.time() * 1000)
self.timeout = timeout
self.notified = False
self.have_notified = False
def notified(self):
return self.deferred.called
@ -59,7 +59,7 @@ class _NotificationListener(object):
def notify(self, token):
""" Inform whoever is listening about the new events.
"""
self.notified = True
self.have_notified = True
try:
self.deferred.callback(token)
except defer.AlreadyCalledError: