Use float rather than integer divisions to turn msec into sec - so timeouts under 1000msec will actually work

This commit is contained in:
Paul "LeoNerd" Evans 2015-01-12 19:09:14 +00:00
parent 9c804bc3fd
commit 02ffbb20d0

View file

@ -91,7 +91,7 @@ class TypingNotificationHandler(BaseHandler):
self._member_typing_until[member] = until
self._member_typing_timer[member] = self.clock.call_later(
timeout / 1000, _cb
timeout / 1000.0, _cb
)
if was_present: