Skip to content

Commit a38022d

Browse files
committed
debug fix: confition to updateChildFraction
1 parent e6b6b15 commit a38022d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/ProgressManager/ProgressManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ internal struct AnyMetatypeWrapper: Hashable, Equatable, Sendable {
418418
if let portionOfParent = portion {
419419
let myFraction = state.withLock { $0.fractionState.overallFraction }
420420

421-
if myFraction.isFinished {
421+
if !myFraction.isFinished {
422422
// If I'm not finished, update my entry in parent's childFraction
423423
managerState.fractionState.childFraction = managerState.fractionState.childFraction + _ProgressFraction(completed: portionOfParent, total: managerState.fractionState.selfFraction.total) * myFraction
424424

0 commit comments

Comments
 (0)