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 5, 2022
1 parent 279ccf0 commit d0ea7ad
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 d0ea7ad

Please sign in to comment.