/* Mark search as finished and remove it from search chain.  */
static void _mdns_search_finish(mdns_search_once_t *search)
/* Mark search as finished and remove it from search chain.  */
static void _mdns_search_finish(mdns_search_once_t *search)
{
    search->state = SEARCH_OFF;
    queueDetach(mdns_search_once_t, _mdns_server->search_once, search);
    xSemaphoreGive(search->lock);
}