execute() now properly resets the current run stage.

This commit is contained in:
Relintai 2020-08-04 15:24:12 +02:00
parent 0297e4d86d
commit 862a366e9a

View File

@ -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