diff --git a/src/sentinel.c b/src/sentinel.c index d091bf230..204a8b317 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -860,6 +860,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. */