mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
Solve launches too slow
This commit is contained in:
@@ -73,8 +73,7 @@ class ServerProvider extends BusyProvider {
|
||||
final auth = spi.authorization as Map<String, dynamic>;
|
||||
return SSHClient(socket,
|
||||
username: spi.user,
|
||||
identities: SSHKeyPair.fromPem(auth['privateKey'],
|
||||
auth['passphrase']));
|
||||
identities: SSHKeyPair.fromPem(auth['privateKey'], auth['passphrase']));
|
||||
}
|
||||
|
||||
Future<void> refreshData({int? idx}) async {
|
||||
@@ -105,6 +104,7 @@ class ServerProvider extends BusyProvider {
|
||||
locator<SettingStore>().serverStatusUpdateInterval.fetch()!;
|
||||
if (duration == 0) return;
|
||||
stopAutoRefresh();
|
||||
Future.delayed(const Duration(milliseconds: 677), () => refreshData());
|
||||
_timer = Timer.periodic(Duration(seconds: duration), (_) async {
|
||||
await refreshData();
|
||||
});
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ToolBox";
|
||||
static const int build = 70;
|
||||
static const int build = 73;
|
||||
static const String engine = "Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 77d935af4d (3 weeks ago) • 2021-12-16 08:37:33 -0800\nEngine • revision 890a5fca2e\nTools • Dart 2.15.1\n";
|
||||
static const String buildAt = "2022-01-03 14:58:50.087508";
|
||||
static const int modifications = 2;
|
||||
static const String buildAt = "2022-01-09 19:17:25.988021";
|
||||
static const int modifications = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user