diff --git a/src/oauth.rs b/src/oauth.rs index 2ed2ff7..a3f4dc0 100644 --- a/src/oauth.rs +++ b/src/oauth.rs @@ -131,7 +131,7 @@ pub async fn token_daemon() { } pub async fn force_refresh_token() { - if !OAUTH_IS_ROLLING_OVER.compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst).is_ok() { + if OAUTH_IS_ROLLING_OVER.compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst).is_err() { trace!("Skipping refresh token roll over, already in progress"); return; }