Merge "FakeLoopingCall raises IOError"

changes/22/640222/1
Zuul 4 years ago committed by Gerrit Code Review
commit c181fce90d

@ -110,10 +110,10 @@ class FakeLoopingCall(object):
self.call_func = func
def start(self, interval, **kwargs):
intitial_delay = kwargs.pop("initial_delay", -1)
initial_delay = kwargs.pop("initial_delay", 0)
stop_on_exception = kwargs.pop("stop_on_exception", True)
if intitial_delay:
time.sleep(intitial_delay)
if initial_delay:
time.sleep(initial_delay)
while True:
try:
self.call_func()

Loading…
Cancel
Save