summaryrefslogtreecommitdiff
path: root/src/sentinel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sentinel.c')
-rw-r--r--src/sentinel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 204a8b317..fb504ae4d 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -860,7 +860,6 @@ 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. */
@@ -870,8 +869,8 @@ void sentinelCollectTerminatedScripts(void) {
}
listDelNode(sentinel.scripts_queue,ln);
sentinelReleaseScriptJob(sj);
- sentinel.running_scripts--;
}
+ sentinel.running_scripts--;
}
}