aboutsummaryrefslogtreecommitdiff
path: root/src/htbt.c
diff options
context:
space:
mode:
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 28f49c3..c74adf8 100644
--- a/src/htbt.c
+++ b/src/htbt.c
@@ -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);