mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 02:55:46 +03:00
Only start the notifier timeout once we've had a chance to check for updates. Otherwise the timeout could fire while we are waiting for the database to return any updates it might have
This commit is contained in:
parent
42529cbced
commit
dc70d1fef8
1 changed files with 2 additions and 2 deletions
|
@ -244,14 +244,14 @@ class Notifier(object):
|
|||
)
|
||||
|
||||
if timeout:
|
||||
self.clock.call_later(timeout/1000.0, _timeout_listener)
|
||||
|
||||
self._register_with_keys(listener)
|
||||
|
||||
yield self._check_for_updates(listener)
|
||||
|
||||
if not timeout:
|
||||
_timeout_listener()
|
||||
else:
|
||||
self.clock.call_later(timeout/1000.0, _timeout_listener)
|
||||
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue