Skip to content

Commit 932f6f3

Browse files
use ts->base.interp
1 parent 97500e3 commit 932f6f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_asynciomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4091,7 +4091,7 @@ _asyncio_all_tasks_impl(PyObject *module, PyObject *loop)
40914091
}
40924092
} else {
40934093
// Slow path for loop running in different thread
4094-
PyInterpreterState *interp = PyInterpreterState_Get();
4094+
PyInterpreterState *interp = ts->base.interp;
40954095
// Stop the world and traverse the per-thread linked list
40964096
// of asyncio tasks for every thread, as well as the
40974097
// interpreter's linked list, and add them to `tasks`.

0 commit comments

Comments
 (0)