Skip to content

Commit 5801138

Browse files
add back clearing in PyThreadState_Clear
1 parent 1ad2089 commit 5801138

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/pystate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,8 @@ PyThreadState_Clear(PyThreadState *tstate)
16671667
Py_CLEAR(tstate->threading_local_key);
16681668
Py_CLEAR(tstate->threading_local_sentinel);
16691669

1670+
Py_CLEAR(((_PyThreadStateImpl *)tstate)->asyncio_running_loop);
1671+
16701672
Py_CLEAR(tstate->dict);
16711673
Py_CLEAR(tstate->async_exc);
16721674

0 commit comments

Comments
 (0)