Skip to content

Commit

Permalink
Attempt to fix continuation misuse
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Feb 12, 2024
1 parent 4cf0f65 commit 1213922
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Upscaling/UpscalingExportSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ public class UpscalingExportSession {
} else {
assetWriterInput.markAsFinished()
continuation.resume()
return
}
}
}
Expand Down Expand Up @@ -392,10 +393,12 @@ public class UpscalingExportSession {
} else {
assetWriterInput.markAsFinished()
continuation.resume(throwing: Error.missingImageBuffer)
return
}
} else {
assetWriterInput.markAsFinished()
continuation.resume()
return
}
}
}
Expand Down Expand Up @@ -466,10 +469,12 @@ public class UpscalingExportSession {
} else {
assetWriterInput.markAsFinished()
continuation.resume(throwing: Error.missingTaggedBuffers)
return
}
} else {
assetWriterInput.markAsFinished()
continuation.resume()
return
}
}
}
Expand Down

0 comments on commit 1213922

Please sign in to comment.