Skip to content

Commit d99eb66

Browse files
authored
Merge pull request swiftlang#925 from victor-pavlychko/master
2 parents a6e77b4 + aa0c559 commit d99eb66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/Progress.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ open class Progress : NSObject {
292292
open var pausingHandler: (() -> Void)? {
293293
didSet {
294294
guard let handler = pausingHandler else { return }
295-
// If we're already cancelled, then invoke it - asynchronously
296-
if isCancelled {
295+
// If we're already paused, then invoke it - asynchronously
296+
if isPaused {
297297
DispatchQueue.global().async {
298298
handler()
299299
}

0 commit comments

Comments
 (0)