fix inverted cancel token usage

This commit is contained in:
OMGeeky
2023-07-15 18:24:45 +02:00
parent f4982df4cd
commit eb7eae2735
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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}% ({}/{}) [{}]",