server_group: fix server group not working issue.

This commit is contained in:
Nick Peng
2022-08-11 00:57:09 +08:00
parent c156595f61
commit 2848aa0ac7
6 changed files with 139 additions and 54 deletions

View File

@@ -1416,10 +1416,6 @@ static void _dns_client_query_remove(struct dns_query_struct *query)
{
/* remove query from period check list, and release reference*/
pthread_mutex_lock(&client.domain_map_lock);
if (list_empty(&query->dns_request_list)) {
pthread_mutex_unlock(&client.domain_map_lock);
return;
}
list_del_init(&query->dns_request_list);
hash_del(&query->domain_node);
pthread_mutex_unlock(&client.domain_map_lock);