mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
fix: Analyzer bug
This commit is contained in:
parent
d38da1f91a
commit
3f9a3fc5e1
@ -32,13 +32,9 @@ abstract class ClientManager {
|
||||
}
|
||||
if (clientNames.isEmpty) clientNames.add(PlatformInfos.clientName);
|
||||
final clients = clientNames.map(createClient).toList();
|
||||
final start = DateTime.now();
|
||||
await Future.wait(clients.map((client) => client
|
||||
.init(waitForFirstSync: false)
|
||||
.catchError((e, s) => Logs().e('Unable to initialize client', e, s))));
|
||||
final end = DateTime.now();
|
||||
print(
|
||||
'We needed: ${end.millisecondsSinceEpoch - start.millisecondsSinceEpoch} milliseconds');
|
||||
if (clients.length > 1 && clients.any((c) => !c.isLogged())) {
|
||||
final loggedOutClients = clients.where((c) => !c.isLogged()).toList();
|
||||
for (final client in loggedOutClients) {
|
||||
|
Loading…
Reference in New Issue
Block a user