Skip to content

Commit

Permalink
fix: Fixing a crash when attempting to call finishWriting
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisebas committed Jul 25, 2024
1 parent 7d7bb8f commit 4d96c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/FaceLiveness/AV/VideoChunker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ final class VideoChunker {
state = .awaitingSingleFrame

// explicitly calling `endSession` is unnecessary
if state != .complete {
if assetWriter.status != .completed {
assetWriter.finishWriting {}
}
}
Expand Down

0 comments on commit 4d96c38

Please sign in to comment.