# HG changeset patch # User jfp <jf.pieronne@laposte.net> # Date 1685541106 -7200 # Wed May 31 15:51:46 2023 +0200 # Node ID 5e064f2183a29bbff5111b3d50314edc9c1e732a # Parent 7859d719b9ed062b78b8057b09b4e055e12f8122 Fix a bug when commands start/stop are sent with short delay between each command diff --git a/supervisord.py b/supervisord.py --- a/supervisord.py +++ b/supervisord.py @@ -387,9 +387,10 @@ self.process.state = ProcessStates.FATAL return self.remain_startretries -= 1 - if self.timer_item: - self.timer_item.cancel = True - self.timer_item = None + + if self.timer_item: + self.timer_item.cancel = True + self.timer_item = None self.process.finalsts = None # If the image argument specifies the SYS$SYSTEM:LOGINOUT.EXE,