Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 authored Jun 25, 2024
1 parent d7b118b commit 11fc416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/_asynciomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3946,7 +3946,8 @@ static int
module_exec(PyObject *mod)
{
asyncio_state *state = get_asyncio_state(mod);
Py_SET_REFCNT(&state->asyncio_tasks.tail, _Py_IMMORTAL_REFCNT);

_Py_SetImmortal((PyObject *)&state->asyncio_tasks.tail);
state->asyncio_tasks.head = &state->asyncio_tasks.tail;

#define CREATE_TYPE(m, tp, spec, base) \
Expand Down

0 comments on commit 11fc416

Please sign in to comment.