mirror of
https://github.com/OMGeeky/twitch_data.git
synced 2025-12-26 16:27:24 +01:00
fix inverted cancel token usage
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "twitch_data"
|
||||
version = "0.2.8"
|
||||
version = "0.2.9"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@@ -559,7 +559,7 @@ impl<'a> TwitchClient<'a> {
|
||||
let completed = Arc::clone(&completed);
|
||||
let canceled = Arc::clone(&canceled);
|
||||
tokio::spawn(async move {
|
||||
while canceled.load(Ordering::Relaxed) {
|
||||
while !canceled.load(Ordering::Relaxed) {
|
||||
let current_progress = completed.load(Ordering::Relaxed);
|
||||
info!(
|
||||
"{}: {:>6.2}% ({}/{}) [{}]",
|
||||
|
||||
Reference in New Issue
Block a user