Skip to content

Commit 061853f

Browse files
committed
Fix the currentOperation cancel may not clear the weak reference and cause issues (indicator check failed)
1 parent d57fdbb commit 061853f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SDWebImageSwiftUI/Classes/ImageManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class ImageManager : ObservableObject {
8181

8282
func cancel() {
8383
currentOperation?.cancel()
84+
currentOperation = nil
8485
}
8586

8687
}

0 commit comments

Comments
 (0)