mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-23 17:47:17 +01:00
Use call_deferred when emitting the completed signal, so the handlers run on the main thread.
This commit is contained in:
parent
6dc774cf5c
commit
642b5b7159
@ -38,7 +38,7 @@ void ThreadPoolJob::set_complete(const bool value) {
|
||||
_complete = value;
|
||||
|
||||
if (call_signal) {
|
||||
emit_signal("completed");
|
||||
call_deferred("emit_signal", "completed");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user