File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2571,7 +2571,7 @@ Py_EndInterpreter(PyThreadState *tstate)
25712571 if (tstate != _PyThreadState_GET ()) {
25722572 Py_FatalError ("thread is not current" );
25732573 }
2574- if (tstate -> current_frame != NULL ) {
2574+ if (tstate -> current_frame != tstate -> base_frame ) {
25752575 Py_FatalError ("thread still has a frame" );
25762576 }
25772577 interp -> finalizing = 1 ;
Original file line number Diff line number Diff line change @@ -1684,7 +1684,7 @@ PyThreadState_Clear(PyThreadState *tstate)
16841684
16851685 int verbose = _PyInterpreterState_GetConfig (tstate -> interp )-> verbose ;
16861686
1687- if (verbose && tstate -> current_frame != NULL ) {
1687+ if (verbose && tstate -> current_frame != tstate -> base_frame ) {
16881688 /* bpo-20526: After the main thread calls
16891689 _PyInterpreterState_SetFinalizing() in Py_FinalizeEx()
16901690 (or in Py_EndInterpreter() for subinterpreters),
You can’t perform that action at this time.
0 commit comments