Skip to content

Commit

Permalink
fix: Fixing a crash when attempting to call finishWriting (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisebas authored Jul 26, 2024
1 parent 7d7bb8f commit 8b3f63a
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 8b3f63a

Please sign in to comment.