From: Guus Sliepen Date: Fri, 12 Jun 2020 22:40:43 +0000 (+0200) Subject: Initialize the adns_done_queue. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=cb34e9341aa5e87867ca8c539c167f271e31b5bf;p=meshlink Initialize the adns_done_queue. --- 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); }