Commit 3ab1cd05 authored by Michael Sawyer's avatar Michael Sawyer
Browse files

Don't INSIST something which is rarely, but legitimately, not true.

parent 19c8df90
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dighost.c,v 1.111 2000/08/03 17:43:03 mws Exp $ */
/* $Id: dighost.c,v 1.112 2000/08/03 18:23:16 mws Exp $ */
/*
* Notice to programmers: Do not use this code as an example of how to
......@@ -734,10 +734,10 @@ static void
check_if_done(void) {
debug("check_if_done()");
debug("list %s", ISC_LIST_EMPTY(lookup_list) ? "empty" : "full");
if (ISC_LIST_EMPTY(lookup_list) && current_lookup == NULL) {
if (ISC_LIST_EMPTY(lookup_list) && current_lookup == NULL &&
sendcount == 0) {
INSIST(sockcount == 0);
INSIST(recvcount == 0);
INSIST(sendcount == 0);
debug("shutting down");
dighost_shutdown();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment