We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4937ba5 commit 1ad2089Copy full SHA for 1ad2089
Modules/_asynciomodule.c
@@ -3724,6 +3724,9 @@ module_clear(PyObject *mod)
3724
3725
Py_CLEAR(state->context_kwname);
3726
3727
+ _PyThreadStateImpl *ts = (_PyThreadStateImpl *)_PyThreadState_GET();
3728
+ Py_CLEAR(ts->asyncio_running_loop);
3729
+
3730
return 0;
3731
}
3732
Python/pystate.c
@@ -1667,8 +1667,6 @@ PyThreadState_Clear(PyThreadState *tstate)
1667
Py_CLEAR(tstate->threading_local_key);
1668
Py_CLEAR(tstate->threading_local_sentinel);
1669
1670
- Py_CLEAR(((_PyThreadStateImpl *)tstate)->asyncio_running_loop);
1671
-
1672
Py_CLEAR(tstate->dict);
1673
Py_CLEAR(tstate->async_exc);
1674
0 commit comments