Set running flag to false if falling out of oidc run loop

This commit is contained in:
Grant Limberg 2022-06-22 17:36:24 -07:00
parent 183a9d7088
commit 5a8d2c3cb4
No known key found for this signature in database
GPG Key ID: 8F2F97D3BE8D7735

@ -375,7 +375,9 @@ impl ZeroIDC {
}
}
println!("thread done!")
println!("thread done!");
(*inner_local.lock().unwrap()).running = false;
println!("set idc thread running flag to false");
}));
}
}
@ -400,7 +402,7 @@ impl ZeroIDC {
pub fn set_nonce_and_csrf(&mut self, csrf_token: String, nonce: String) {
let local = Arc::clone(&self.inner);
let _ = (*local.lock().expect("can't lock inner"))
(*local.lock().expect("can't lock inner"))
.as_opt()
.map(|i| {
if i.running {