diff --git a/lib/entities/background_tasks.dart b/lib/entities/background_tasks.dart index b011541c9..d506d82f3 100644 --- a/lib/entities/background_tasks.dart +++ b/lib/entities/background_tasks.dart @@ -279,7 +279,11 @@ Future onStart(ServiceInstance service) async { if (syncedTicks > 5) { syncedTicks = 0; printV("WALLET $i SYNCED"); - wallet.stopSync(); + try { + wallet.stopSync(); + } catch (e) { + printV("error stopping sync: $e"); + } // pop the first wallet from the list standbyWallets.add(syncingWallets.removeAt(i)); flutterLocalNotificationsPlugin.cancelAll();