mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-27 14:29:53 +00:00
Set running flag to false if falling out of oidc run loop
This commit is contained in:
parent
183a9d7088
commit
5a8d2c3cb4
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user