From 862a366e9a7d17e2aa9ffdad8ba87fe44ada75ad Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 4 Aug 2020 15:24:12 +0200 Subject: [PATCH] execute() now properly resets the current run stage. --- thread_pool_job.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thread_pool_job.cpp b/thread_pool_job.cpp index 47ac0ec..998a565 100644 --- a/thread_pool_job.cpp +++ b/thread_pool_job.cpp @@ -124,6 +124,8 @@ bool ThreadPoolJob::should_return() { void ThreadPoolJob::execute() { ERR_FAIL_COND(!has_method("_execute")); + _current_run_stage = 0; + #if VERSION_MAJOR < 4 _start_time = OS::get_singleton()->get_system_time_msecs(); #else