summary refs log tree commit diff
path: root/synapse/notifier.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-10-29 17:02:55 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-10-29 17:03:02 +0000
commitbeae9acfcc41f1d51f70d6773d4d516403e8ad25 (patch)
treea03ff0931326338802662ca17fab49e7a3a5759e /synapse/notifier.py
parentSYWEB-127: Open event info modal dialog when the bubble is clicked. (diff)
downloadsynapse-beae9acfcc41f1d51f70d6773d4d516403e8ad25.tar.xz
Use floating-point rather than integer division to handle timeouts so that non-zero but sub-second waits don't collapse to zero
Diffstat (limited to '')
-rw-r--r--synapse/notifier.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/notifier.py b/synapse/notifier.py
index 5b02c71d1e..bb1aa4f69a 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)