0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-10-05 07:59:04 +02: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:
Paul "LeoNerd" Evans 2014-10-29 17:02:55 +00:00
parent 0d278f5da8
commit beae9acfcc

View file

@ -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)