EventLoop.timeout_add: fix inverted min interval
authorZac Medico <zmedico@gentoo.org>
Thu, 16 Feb 2012 04:41:16 +0000 (20:41 -0800)
committerZac Medico <zmedico@gentoo.org>
Thu, 16 Feb 2012 04:41:16 +0000 (20:41 -0800)
pym/portage/util/_eventloop/EventLoop.py

index af0c6a502a9e1ca28a132a5fe4d3711110ef1b94..f6f9fc54b2d659a3c27fe4228bba02931970567c 100644 (file)
@@ -238,7 +238,7 @@ class EventLoop(object):
                        self._timeout_handler_class(
                                interval=interval, function=function, args=args,
                                source_id=source_id, timestamp=time.time())
-               if self._timeout_interval is None or self._timeout_interval < interval:
+               if self._timeout_interval is None or self._timeout_interval > interval:
                        self._timeout_interval = interval
                return source_id