Skip to content
Snippets Groups Projects
Commit beae9acf authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Use floating-point rather than integer division to handle timeouts so that...

Use floating-point rather than integer division to handle timeouts so that non-zero but sub-second waits don't collapse to zero
parent 0d278f5d
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ class Notifier(object): ...@@ -207,7 +207,7 @@ class Notifier(object):
) )
if timeout: if timeout:
reactor.callLater(timeout/1000, self._timeout_listener, listener) reactor.callLater(timeout/1000.0, self._timeout_listener, listener)
self._register_with_keys(listener) self._register_with_keys(listener)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment