From cb34e9341aa5e87867ca8c539c167f271e31b5bf Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 13 Jun 2020 00:40:43 +0200 Subject: [PATCH] Initialize the adns_done_queue. --- src/adns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/adns.c b/src/adns.c index 08fd8123..56aed8b3 100644 --- a/src/adns.c +++ b/src/adns.c @@ -85,8 +85,9 @@ static void adns_cb_handler(event_loop_t *loop, void *data) { } void init_adns(meshlink_handle_t *mesh) { - signal_add(&mesh->loop, &mesh->adns_signal, adns_cb_handler, mesh, 1); meshlink_queue_init(&mesh->adns_queue); + meshlink_queue_init(&mesh->adns_done_queue); + signal_add(&mesh->loop, &mesh->adns_signal, adns_cb_handler, mesh, 1); pthread_create(&mesh->adns_thread, NULL, adns_loop, mesh); } -- 2.39.5