fix logic error

This commit is contained in:
Daniella 2022-10-11 06:43:17 +02:00
parent 9402193e1f
commit 319a6385dd

View file

@ -435,7 +435,7 @@ async fn main() {
println!("encode: encoded {n}"); println!("encode: encoded {n}");
}); });
} }
while *running.lock().unwrap() < 5 { while *running.lock().unwrap() >= 6 {
tokio::time::sleep(Duration::from_millis(100)).await; tokio::time::sleep(Duration::from_millis(100)).await;
} }
} }