Skip to content

Commit

Permalink
Merge pull request #576 from douknow/master
Browse files Browse the repository at this point in the history
fix: Missing finish
  • Loading branch information
kean authored Jul 24, 2022
2 parents 40fdbd6 + f2644bb commit 1357e5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/Nuke/Tasks/TaskFetchWithPublisher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ final class TaskFetchWithPublisher: ImagePipelineTask<(Data, URLResponse?)> {
}
})

onCancelled = cancellable.cancel
onCancelled = {
finish()
cancellable.cancel()
}
}

private func dataTaskDidFinish(_ result: PublisherCompletion) {
Expand Down

0 comments on commit 1357e5c

Please sign in to comment.