Warn about shovel only when one exists

This commit is contained in:
Tony Garnock-Jones 2011-01-05 12:39:36 -05:00
parent 76280ef51b
commit 5df0c58c81
1 changed files with 6 additions and 1 deletions

View File

@ -61,7 +61,12 @@ static void queue_destructor(node_t *n) {
}
}
destroy_hashtable(&q->subscriptions);
warn("TODO: the shovel needs to be taken down as well here\n");
if (q->shovel) {
warn("TODO: the shovel needs to be taken down as well here\n");
/* The difficulty is that the shovel may be running at the
moment, so careful ordering of operations is required to
avoid referencing deallocated memory. */
}
free(q);
}
}