python: Don't compare None and int.
[cascardo/ovs.git] / python / ovs / reconnect.py
index 39dd556..d4f5951 100644 (file)
@@ -518,7 +518,7 @@ class Reconnect(object):
         """Causes the next call to poller.block() to wake up when self.run()
         should be called."""
         timeout = self.timeout(now)
-        if timeout >= 0:
+        if timeout is not None and timeout >= 0:
             poller.timer_wait(timeout)
 
     def timeout(self, now):