diff options
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 9ebd9fdea60..72e2627e95b 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -2099,11 +2099,10 @@ _PyThreadState_Attach(PyThreadState *tstate) // XXX assert(tstate_is_alive(tstate)); current_fast_set(&_PyRuntime, tstate); - tstate_activate(tstate); - if (!tstate_try_attach(tstate)) { tstate_wait_attach(tstate); } + tstate_activate(tstate); #ifdef Py_GIL_DISABLED if (_PyEval_IsGILEnabled(tstate) && !tstate->_status.holds_gil) { |