Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit ce40274

Browse files
committed
safety logic fix
1 parent 7859190 commit ce40274

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,8 @@ fn main() {
310310

311311
for _ in 0..unprocessed_indexes.len() {
312312
let segment = &unprocessed_indexes[0];
313+
export_handle.join().unwrap();
313314
if unprocessed_indexes.len() != 1 {
314-
export_handle.join().unwrap();
315-
316315
let index = unprocessed_indexes[1].index;
317316
let _inpt = input_path.clone();
318317
let _outpt = format!("temp\\tmp_frames\\{}\\frame%08d.png", index);
@@ -342,6 +341,8 @@ fn main() {
342341
)
343342
.unwrap();
344343
});
344+
} else {
345+
export_handle = thread::spawn(move || {});
345346
}
346347

347348
let inpt_dir = format!("temp\\tmp_frames\\{}", segment.index);

0 commit comments

Comments
 (0)