fix: prevent database deadlock (eps 2)

This commit is contained in:
Alex
2025-09-08 21:10:51 -05:00
parent 23fb2e0fae
commit 9996a1ec3e
13 changed files with 32 additions and 17 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ class BackgroundService {
}
Future<bool> _onAssetsChanged() async {
final (isar, drift, logDb) = await Bootstrap.initDB();
final (isar, drift, logDb) = await Bootstrap.initDB(shareAcrossIsolates: false);
await Bootstrap.initDomain(isar, drift, logDb);
final ref = ProviderContainer(