diff --git a/crates/bevy_core/src/lib.rs b/crates/bevy_core/src/lib.rs index 75fd87adb5ebb..9c97e6bdf8b29 100644 --- a/crates/bevy_core/src/lib.rs +++ b/crates/bevy_core/src/lib.rs @@ -46,6 +46,24 @@ impl Plugin for CorePlugin { .unwrap_or_else(DefaultTaskPoolOptions::default) .create_default_pools(app.world_mut()); + #[cfg(not(target_arch = "wasm32"))] + app.add_system( + task_pool_options::handle_task_pool_panicking_threads_system:: + .system(), + ) + .add_system( + task_pool_options::handle_task_pool_panicking_threads_system::< + bevy_tasks::ComputeTaskPool, + > + .system(), + ) + .add_system( + task_pool_options::handle_task_pool_panicking_threads_system::< + bevy_tasks::AsyncComputeTaskPool, + > + .system(), + ); + app.init_resource::