Skip to content

Commit

Permalink
tick the task pool executor if there are no threads allocated
Browse files Browse the repository at this point in the history
  • Loading branch information
hymm committed Dec 15, 2022
1 parent 883fe29 commit f506f74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_tasks/src/task_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ impl TaskPool {
results
};

let tick_task_pool_executor = tick_task_pool_executor || self.threads.is_empty();
if let Some(thread_ticker) = thread_executor.ticker() {
let tick_forever = async move {
loop {
Expand Down

0 comments on commit f506f74

Please sign in to comment.