Skip to content

Commit

Permalink
fix: init ComputeTaskPool
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianSpeitel committed Jan 26, 2024
1 parent fdb9837 commit 36138da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ impl bevy_app::Plugin for IRCPlugin {
fn build(&self, app: &mut bevy_app::App) {
use bevy_app::Update;

AsyncComputeTaskPool::get_or_init(Default::default);
app.insert_non_send_resource(NonSendRes);
app.add_systems(Update, main_thread_system);

Expand Down

0 comments on commit 36138da

Please sign in to comment.