mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-28 02:54:50 +00:00
Use floating-point rather than integer division to handle timeouts so that non-zero but sub-second waits don't collapse to zero
This commit is contained in:
+1
-1
@@ -207,7 +207,7 @@ class Notifier(object):
|
||||
)
|
||||
|
||||
if timeout:
|
||||
reactor.callLater(timeout/1000, self._timeout_listener, listener)
|
||||
reactor.callLater(timeout/1000.0, self._timeout_listener, listener)
|
||||
|
||||
self._register_with_keys(listener)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user