From 319a6385dd95eb3b517bd41fba861798962fc914 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Tue, 11 Oct 2022 06:43:17 +0200 Subject: [PATCH] fix logic error --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2e53218..eb6dffc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -435,7 +435,7 @@ async fn main() { println!("encode: encoded {n}"); }); } - while *running.lock().unwrap() < 5 { + while *running.lock().unwrap() >= 6 { tokio::time::sleep(Duration::from_millis(100)).await; } }