diff --git a/src/sentinel.c b/src/sentinel.c index 10c003d03..7a25e5ae4 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -859,6 +859,7 @@ void sentinelCollectTerminatedScripts(void) { sj->pid = 0; sj->start_time = mstime() + sentinelScriptRetryDelay(sj->retry_num); + sentinel.running_scripts--; } else { /* Otherwise let's remove the script, but log the event if the * execution did not terminated in the best of the ways. */