mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 04:13:52 +01:00
If timeout=0, return immediately
This commit is contained in:
parent
92033e4ebc
commit
410a74b0f3
1 changed files with 5 additions and 1 deletions
|
@ -179,8 +179,12 @@ class Notifier(object):
|
|||
reactor.callLater(timeout/1000, self._timeout_listener, 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…
Reference in a new issue