mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 01:25:44 +03:00
Store timeout
This commit is contained in:
parent
bddacb6dd1
commit
30b53812de
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ class _NotificationListener(object):
|
|||
def __init__(self, deferred, timeout):
|
||||
self.deferred = deferred
|
||||
self.created = int(time.time() * 1000)
|
||||
self.timeout = timeout
|
||||
|
||||
def notified(self):
|
||||
return self.deferred.called
|
||||
|
|
Loading…
Reference in a new issue