diff --git a/cmd/admin-heal-ops.go b/cmd/admin-heal-ops.go index 4f915887f..a54fae9a8 100644 --- a/cmd/admin-heal-ops.go +++ b/cmd/admin-heal-ops.go @@ -528,7 +528,7 @@ func (h *healSequence) hasEnded() bool { if h.clientToken == bgHealingUUID { return false } - return len(h.currentStatus.Items) == 0 || h.currentStatus.Summary == healStoppedStatus || h.currentStatus.Summary == healFinishedStatus + return !h.endTime.IsZero() } // stops the heal sequence - safe to call multiple times.