diff options
author | David Timber <mieabby@gmail.com> | 2021-04-09 22:41:00 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-04-09 22:56:57 +1000 |
commit | f91419f6b3400a6b73f7d2b3c7b8044b6aa490db (patch) | |
tree | b1a029a8d31a9ae79d6988d7b1cb64875ec0b8a6 /src/htbt.c | |
parent | d99b1309b1c699103c26b316a373a64f5342b905 (diff) |
Impl hostinfod, htbt
* htbt: Call `htbt_cncp_do_probe()` right after start
* hostinfod: impl DB thread
Diffstat (limited to 'src/htbt.c')
-rw-r--r-- | src/htbt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2071,6 +2071,8 @@ static void *htbt_cncp_entry (void *p) { pth_event_t ev = NULL; while (ctx->loop_flag) { + htbt_cncp_do_probe(ctx); + // calc interval variance intvar = 0; // ignore failure of mbedtls_ctr_drbg_random() mbedtls_ctr_drbg_random( @@ -2090,8 +2092,6 @@ static void *htbt_cncp_entry (void *p) { pth_cond_await(&ctx->cncp.cond, &ctx->cncp.lock, ev); } pth_mutex_release(&ctx->cncp.lock); - - htbt_cncp_do_probe(ctx); } pth_event_free(ev, FALSE); |