tor-dirmgr: report bootstrap success on all successful cases.
Previously we would sometimes fail to report that we had successfully bootstrapped.
This commit is contained in:
parent
16767fb517
commit
e9399ec6c0
|
@ -353,6 +353,11 @@ impl<R: Runtime> DirMgr<R> {
|
|||
retry_config.n_attempts()
|
||||
);
|
||||
return Err(Error::CantAdvanceState.into());
|
||||
} else {
|
||||
// Report success, if appropriate.
|
||||
if let Some(send_done) = on_complete.take() {
|
||||
let _ = send_done.send(());
|
||||
}
|
||||
}
|
||||
|
||||
let reset_at = state.reset_time();
|
||||
|
|
Loading…
Reference in New Issue