From f879708d42f0f2a9777e633b047a4cc7b7d31b71 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 19 Sep 2021 12:14:50 +0200 Subject: [PATCH] fix: Stuff --- lib/main.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index be4dc45e..83d9c3f0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -34,7 +34,9 @@ void main() async { Zone.current.handleUncaughtError(details.exception, details.stack); final clients = await ClientManager.getClients(); - await Future.wait(clients.map((client) => client.init())); + await Future.wait(clients.map((client) => client + .init() + .catchError((e, s) => Logs().e('Unable to initialize client', e, s)))); if (PlatformInfos.isMobile) { BackgroundPush.clientOnly(clients.first); }