Commit f15356f8 authored by Bob Halley's avatar Bob Halley
Browse files

remove now-useless remnant of an earlier revision

parent 2acf5526
...@@ -238,12 +238,8 @@ task_detach(task_t *taskp) { ...@@ -238,12 +238,8 @@ task_detach(task_t *taskp) {
LOCK(&task->lock); LOCK(&task->lock);
REQUIRE(task->references > 0); REQUIRE(task->references > 0);
task->references--; task->references--;
if (task->state == task_state_shutdown && if (task->state == task_state_shutdown && task->references == 0)
task->references == 0) {
manager = task->manager;
INSIST(VALID_MANAGER(manager));
free_task = TRUE; free_task = TRUE;
}
UNLOCK(&task->lock); UNLOCK(&task->lock);
if (free_task) if (free_task)
......
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