Correct logic for detecting if the bandwidth test is already running. compare_exchange returns the CURRENT value, not the NEW value.

This commit is contained in:
Herbert Wolverson 2023-03-09 14:25:43 +00:00
parent 798e65b107
commit 23736eaab7

View File

@ -11,7 +11,7 @@ pub fn lqos_daht_test() -> BusResponse {
true,
std::sync::atomic::Ordering::Relaxed,
std::sync::atomic::Ordering::Relaxed,
) == Ok(true)
) == Ok(false)
{
let result = Command::new("/bin/ssh")
.args(["-t", "lqtest@lqos.taht.net", "\"/home/lqtest/bin/v6vsv4.sh\""])