diff --git a/mobile/lib/data/db/main/database.dart b/mobile/lib/data/db/main/database.dart index 6f3b3c249..fb7d25a83 100644 --- a/mobile/lib/data/db/main/database.dart +++ b/mobile/lib/data/db/main/database.dart @@ -122,7 +122,7 @@ class Drift extends $Drift { @override Future close() async { await super.close(); - _updatePool?.close(); + await _updatePool?.close(); } Future reset() async { diff --git a/mobile/pubspec.lock b/mobile/pubspec.lock index 19ab3b78c..1d60cb099 100644 --- a/mobile/pubspec.lock +++ b/mobile/pubspec.lock @@ -1664,10 +1664,10 @@ packages: dependency: "direct main" description: name: sqlite3_connection_pool - sha256: ad51972d37bdf82929888e4c85e722bd9a0b5ff8ad389f89b1b00d19603c0d2d + sha256: ad8413d9100598ee9ef1a27628f5673b7d9212fb9d15b2742f7fde690f743832 url: "https://pub.dev" source: hosted - version: "0.2.7" + version: "0.2.13" sqlite3_web: dependency: transitive description: diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml index 623d21395..1d511d614 100644 --- a/mobile/pubspec.yaml +++ b/mobile/pubspec.yaml @@ -69,7 +69,7 @@ dependencies: stream_transform: ^2.1.1 sqlite3: ^3.4.0 sqlite_async: 0.14.2 - sqlite3_connection_pool: ^0.2.7 + sqlite3_connection_pool: ^0.2.13 thumbhash: 0.1.0+1 timezone: ^0.9.4 url_launcher: ^6.3.2 diff --git a/mobile/test/infrastructure/db_watchers_test.dart b/mobile/test/infrastructure/db_watchers_test.dart index c8eed85ba..0b6eefc21 100644 --- a/mobile/test/infrastructure/db_watchers_test.dart +++ b/mobile/test/infrastructure/db_watchers_test.dart @@ -57,7 +57,7 @@ Future _writerTask(String path) async { } finally { await db.close(); await dbConnection.close(); - sqlitePool.close(); + await sqlitePool.close(); } }