mirror of
https://github.com/matrix-org/synapse.git
synced 2026-05-05 20:26:41 +02:00
If timeout=0, return immediately
This commit is contained in:
parent
92033e4ebc
commit
410a74b0f3
@ -178,9 +178,13 @@ class Notifier(object):
|
||||
if timeout:
|
||||
reactor.callLater(timeout/1000, self._timeout_listener, listener)
|
||||
|
||||
self._register_with_keys(listener)
|
||||
self._register_with_keys(listener)
|
||||
|
||||
yield self._check_for_updates(listener)
|
||||
|
||||
if not timeout:
|
||||
self._timeout_listener(listener)
|
||||
|
||||
return
|
||||
|
||||
def _timeout_listener(self, listener):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user