fix: Crash on logout

This commit is contained in:
Krille Fear 2021-10-27 11:14:27 +02:00
commit 015a12b04d
2 changed files with 10 additions and 7 deletions

View file

@ -37,6 +37,7 @@ void main() async {
Zone.current.handleUncaughtError(details.exception, details.stack);
final clients = await ClientManager.getClients();
Logs().level = kDebugMode ? Level.debug : Level.warning;
if (PlatformInfos.isMobile) {
BackgroundPush.clientOnly(clients.first);