Skip to content

Commit c12f271

Browse files
fixup for regular builds
1 parent 237a089 commit c12f271

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Modules/_asynciomodule.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2029,8 +2029,14 @@ unregister_task(asyncio_state *state, TaskObj *task)
20292029
llist_remove(&task->task_node);
20302030
}
20312031
}
2032-
#endif
2032+
#else
2033+
if (task->task_node.next == NULL) {
2034+
// not registered
2035+
assert(task->task_node.prev == NULL);
2036+
return;
2037+
}
20332038
llist_remove(&task->task_node);
2039+
#endif
20342040
}
20352041

20362042
static int

0 commit comments

Comments
 (0)