Skip to content

Commit 8b3f63a

Browse files
authored
fix: Fixing a crash when attempting to call finishWriting (#161)
1 parent 7d7bb8f commit 8b3f63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FaceLiveness/AV/VideoChunker.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ final class VideoChunker {
4444
state = .awaitingSingleFrame
4545

4646
// explicitly calling `endSession` is unnecessary
47-
if state != .complete {
47+
if assetWriter.status != .completed {
4848
assetWriter.finishWriting {}
4949
}
5050
}

0 commit comments

Comments
 (0)