Skip to content

Commit

Permalink
fix: Missing finish
Browse files Browse the repository at this point in the history
  • Loading branch information
douknow committed Jul 24, 2022
1 parent 40fdbd6 commit f2644bb
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 f2644bb

Please sign in to comment.