mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-11 18:47:47 +00:00
avoid call refreshCurrentUser twice at startup (#8848)
refreshCurrentUser will be called at these 2 position: 1. runMainApp or runMobileApp in main.dart 2. when connect status is ready Both of these two happens at startup, when connect status is ready and startup time < 5 seconds, not call refreshCurrentUser Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -111,9 +111,9 @@ class AbModel {
|
||||
Future<void> _pullAb(
|
||||
{required ForcePullAb? force, required bool quiet}) async {
|
||||
if (bind.isDisableAb()) return;
|
||||
debugPrint("pullAb, force: $force, quiet: $quiet");
|
||||
if (!gFFI.userModel.isLogin) return;
|
||||
if (force == null && listInitialized && current.initialized) return;
|
||||
debugPrint("pullAb, force: $force, quiet: $quiet");
|
||||
if (!listInitialized || force == ForcePullAb.listAndCurrent) {
|
||||
try {
|
||||
// Read personal guid every time to avoid upgrading the server without closing the main window
|
||||
|
||||
Reference in New Issue
Block a user