mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +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);
|
if (clientNames.isEmpty) clientNames.add(PlatformInfos.clientName);
|
||||||
final clients = clientNames.map(createClient).toList();
|
final clients = clientNames.map(createClient).toList();
|
||||||
final start = DateTime.now();
|
|
||||||
await Future.wait(clients.map((client) => client
|
await Future.wait(clients.map((client) => client
|
||||||
.init(waitForFirstSync: false)
|
.init(waitForFirstSync: false)
|
||||||
.catchError((e, s) => Logs().e('Unable to initialize client', e, s))));
|
.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())) {
|
if (clients.length > 1 && clients.any((c) => !c.isLogged())) {
|
||||||
final loggedOutClients = clients.where((c) => !c.isLogged()).toList();
|
final loggedOutClients = clients.where((c) => !c.isLogged()).toList();
|
||||||
for (final client in loggedOutClients) {
|
for (final client in loggedOutClients) {
|
||||||
|
Loading…
Reference in New Issue
Block a user