mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
task: fix error awaiting already scheduled task
To reproduce this issue, try `await taskMgr.add(Task.pause(1.0))`
This commit is contained in:
parent
7262f16ed8
commit
e64a342a9f
@ -598,7 +598,9 @@ do_python_task() {
|
||||
// directly instead of having to do:
|
||||
// await taskMgr.add(Task.pause(1.0))
|
||||
AsyncTask *task = (AsyncTask *)fut;
|
||||
_manager->add(task);
|
||||
if (!task->is_alive()) {
|
||||
_manager->add(task);
|
||||
}
|
||||
}
|
||||
if (fut->add_waiting_task(this)) {
|
||||
if (task_cat.is_debug()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user