diff --git a/packages/cli/bin/debug_surveys.dart b/packages/cli/bin/debug_surveys.dart index cfd06009..097caa50 100644 --- a/packages/cli/bin/debug_surveys.dart +++ b/packages/cli/bin/debug_surveys.dart @@ -25,6 +25,8 @@ Future command(FileSystem fs, ArgResults argResults) async { nearbyMarketSymbol: mineSymbol, ); logger.info('$survey'); + // Required or main will hang. + await db.close(); } void main(List args) async { diff --git a/packages/cli/bin/earning_rate.dart b/packages/cli/bin/earning_rate.dart index f30de1dd..10afa320 100644 --- a/packages/cli/bin/earning_rate.dart +++ b/packages/cli/bin/earning_rate.dart @@ -51,7 +51,8 @@ Future command(FileSystem fs, ArgResults argResults) async { final credits = creditsString(last.agentCredits).padLeft(creditsWidth); logger.info('-$sinceLast $credits'); } - // Print per-ship data. + // Required or main will hang. + await db.close(); } void main(List args) async { diff --git a/packages/cli/bin/list_repeated_transactions.dart b/packages/cli/bin/list_repeated_transactions.dart index 066cd5d7..c91233c4 100644 --- a/packages/cli/bin/list_repeated_transactions.dart +++ b/packages/cli/bin/list_repeated_transactions.dart @@ -112,6 +112,8 @@ Future command(FileSystem fs, ArgResults argResults) async { // final p = PolyFit(x, y, degree); // print(p); } + // Required or main will hang. + await db.close(); } void main(List args) async { diff --git a/packages/cli/bin/recent_deals.dart b/packages/cli/bin/recent_deals.dart index c395d4d8..d79aa6bc 100644 --- a/packages/cli/bin/recent_deals.dart +++ b/packages/cli/bin/recent_deals.dart @@ -181,5 +181,6 @@ Future command(FileSystem fs, ArgResults argResults) async { logger.info(describeTransaction(transaction)); } + // Required or main will hang. await db.close(); } diff --git a/packages/cli/bin/route_perf.dart b/packages/cli/bin/route_perf.dart index db2146e8..be03213d 100644 --- a/packages/cli/bin/route_perf.dart +++ b/packages/cli/bin/route_perf.dart @@ -79,4 +79,7 @@ Future command(FileSystem fs, ArgResults argResults) async { 'took ${result.duration.inMilliseconds}ms', ); } + + // Required or main will hang. + await db.close(); } diff --git a/packages/cli/bin/systems_reachable_from_factions.dart b/packages/cli/bin/systems_reachable_from_factions.dart index fd21df79..0bc88bde 100644 --- a/packages/cli/bin/systems_reachable_from_factions.dart +++ b/packages/cli/bin/systems_reachable_from_factions.dart @@ -15,6 +15,7 @@ Future command(FileSystem fs, ArgResults argResults) async { final reachable = clusterCache.connectedSystemCount(hq.systemSymbol); logger.info('${faction.symbol}: $reachable'); } + // Required or main will hang. await db.close(); }