Skip to content

🎥 Make videos programmatically with React

Restore packages/renderer/rust/main.rs

Jonny Burgereeedea85fce5
diff --git a/packages/renderer/rust/main.rs b/packages/renderer/rust/main.rs
index c90e23260d..7f4200a2f4 100644
--- a/packages/renderer/rust/main.rs
+++ b/packages/renderer/rust/main.rs
@@ -66,7 +66,7 @@ fn start_long_running_process() -> Result<(), PossibleErrors> {
break;
}
let opts: CliInputCommand = parse_cli(&input).unwrap();
- match execute_command(opts.payload) {
+ pool.execute(move || match execute_command(opts.payload) {
Ok(res) => global_printer::synchronized_write_buf(0, &opts.nonce, &res).unwrap(),
Err(err) => {
let err = ErrorPayload {
@@ -79,7 +79,7 @@ fn start_long_running_process() -> Result<(), PossibleErrors> {
global_printer::synchronized_write_buf(1, &opts.nonce, &j).unwrap()
}
- }
+ });
}
pool.join();