mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
[BUGFIX] fix python38 compilation (#647)
This commit is contained in:
parent
ce7c99d2cd
commit
85d1016dff
@ -213,7 +213,7 @@ void Effect::run()
|
||||
Py_DECREF(main_dict); // release "main_dict" when done
|
||||
}
|
||||
// stop sub threads if needed
|
||||
for (PyThreadState* s = tstate->interp->tstate_head, *old = nullptr; s;)
|
||||
for (PyThreadState* s = PyInterpreterState_ThreadHead(tstate->interp), *old = nullptr; s;)
|
||||
{
|
||||
if (s == tstate)
|
||||
{
|
||||
@ -230,7 +230,7 @@ void Effect::run()
|
||||
msleep(100);
|
||||
Py_END_ALLOW_THREADS;
|
||||
|
||||
s = tstate->interp->tstate_head;
|
||||
s = PyInterpreterState_ThreadHead(tstate->interp);
|
||||
}
|
||||
|
||||
// Clean up the thread state
|
||||
|
Loading…
Reference in New Issue
Block a user