nts: destroy NTS-KE client right after failed start
When NKC_Start() fails (e.g. due to unreachable network), don't wait for the next poll to destroy the client and another poll to create and start it again.
This commit is contained in:
parent
1eb8994c00
commit
a1406eded3
1 changed files with 1 additions and 2 deletions
|
@ -239,10 +239,9 @@ get_cookies(NNC_Instance inst)
|
|||
inst->nke = NKC_CreateInstance(&inst->nts_address, inst->name, inst->cert_set);
|
||||
|
||||
inst->nke_attempts++;
|
||||
update_next_nke_attempt(inst, now);
|
||||
|
||||
if (!NKC_Start(inst->nke))
|
||||
return 0;
|
||||
;
|
||||
}
|
||||
|
||||
update_next_nke_attempt(inst, now);
|
||||
|
|
Loading…
Reference in a new issue