Repository navigation
Commit 73e0441
committed
fix(tauri): spawn sidecar after database init, not before
Sidecar spawn raced Database::new()'s creation of mt.db: on a fresh
install with no pre-existing db file, the sidecar's own SQLite open
would fail before Rust finished creating it, and the sidecar died
before the health probe could reach it. Move the spawn after
Database::new() returns so the db file always exists first.1 parent 7f96d4a commit 73e0441
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | 607 | | |
614 | 608 | | |
615 | 609 | | |
616 | 610 | | |
617 | 611 | | |
618 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
619 | 622 | | |
620 | 623 | | |
621 | 624 | | |
| |||
0 commit comments