diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-10-29 17:02:55 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-10-29 17:03:02 +0000 |
commit | beae9acfcc41f1d51f70d6773d4d516403e8ad25 (patch) | |
tree | a03ff0931326338802662ca17fab49e7a3a5759e /synapse/notifier.py | |
parent | SYWEB-127: Open event info modal dialog when the bubble is clicked. (diff) | |
download | synapse-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 'synapse/notifier.py')
-rw-r--r-- | synapse/notifier.py | 2 |
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) |