Browse Source

fix auto online twice

pull/18/head
Sun 5 years ago
parent
commit
b40e6f5cb9
  1. 2
      lib/provider.dart

2
lib/provider.dart

@ -79,12 +79,12 @@ class AccountProvider extends ChangeNotifier { @@ -79,12 +79,12 @@ class AccountProvider extends ChangeNotifier {
this.accounts = accounts;
this.activedAccount.online = true;
rpc.send('account-login', [gid, this.activedAccount.lock]);
rpc.send('session-list', []);
new Future.delayed(Duration(seconds: DEFAULT_ONLINE_INIT),
() => rpc.send('account-online', [gid]));
// online other keep-online account.
this.accounts.forEach((k, v) {
if (k != gid && v.online) {
rpc.send('account-login', [v.gid, v.lock]);

Loading…
Cancel
Save