From beae9acfcc41f1d51f70d6773d4d516403e8ad25 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Wed, 29 Oct 2014 17:02:55 +0000 Subject: [PATCH] Use floating-point rather than integer division to handle timeouts so that non-zero but sub-second waits don't collapse to zero --- synapse/notifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/notifier.py b/synapse/notifier.py index 5b02c71d1..bb1aa4f69 100644 --- a/synapse/notifier.py +++ b/synapse/notifier.py @@ -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)