[svn-commits] file: branch group/dns r432514 - /team/group/dns/main/dns_core.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Mar 6 07:15:15 CST 2015
Author: file
Date: Fri Mar 6 07:15:14 2015
New Revision: 432514
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432514
Log:
Don't bother shutting down the scheduler when no resolvers exist.
Modified:
team/group/dns/main/dns_core.c
Modified: team/group/dns/main/dns_core.c
URL: http://svnview.digium.com/svn/asterisk/team/group/dns/main/dns_core.c?view=diff&rev=432514&r1=432513&r2=432514
==============================================================================
--- team/group/dns/main/dns_core.c (original)
+++ team/group/dns/main/dns_core.c Fri Mar 6 07:15:14 2015
@@ -448,6 +448,12 @@
void ast_dns_resolver_completed(const struct ast_dns_query *query)
{
query->callback(query);
+
+ if (!query->recurring) {
+ return;
+ }
+
+
}
static void dns_shutdown(void)
@@ -545,11 +551,6 @@
}
}
AST_RWLIST_TRAVERSE_SAFE_END;
-
- if (AST_LIST_EMPTY(&resolvers)) {
- dns_shutdown();
- }
-
AST_RWLIST_UNLOCK(&resolvers);
ast_verb(2, "Unregistered DNS resolver '%s'\n", resolver->name);
More information about the svn-commits
mailing list