Skip to content

Commit 41dc258

Browse files
committed
Run main schedule at least once to ensure Startup et al run.
1 parent 66a90d7 commit 41dc258

File tree

1 file changed

+2
-2
lines changed
  • crates/processing_render/src

1 file changed

+2
-2
lines changed

crates/processing_render/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ pub fn init(config: Config) -> error::Result<()> {
320320
// also, we need to run the main schedule once to ensure all systems are initialized before we
321321
// return from init, to ensure any plugins that need to do setup in their first update can rely
322322
// on that
323-
app.main_mut().run_default_schedule();
323+
app.update();
324324
set_app(app);
325325

326326
Ok(())
@@ -353,7 +353,7 @@ pub async fn init(config: Config) -> error::Result<()> {
353353

354354
app.finish();
355355
app.cleanup();
356-
app.main_mut().run_default_schedule();
356+
app.update();
357357
set_app(app);
358358

359359
Ok(())

0 commit comments

Comments
 (0)