fix: send LoggedIn signal when UpdateNodeConfigFleet failed on login (#4829)

This commit is contained in:
Igor Sirotin 2024-02-28 15:42:32 +00:00 committed by GitHub
parent c3240b296c
commit 3f98a34eae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -233,7 +233,8 @@ func login(accountData, password, configJSON string) error {
log.Debug("start a node with account", "key-uid", account.KeyUID)
err := statusBackend.UpdateNodeConfigFleet(account, password, &conf)
if err != nil {
return err
log.Error("failed to update node config fleet", "key-uid", account.KeyUID, "error", err)
return statusBackend.LoggedIn(account.KeyUID, err)
}
err = statusBackend.StartNodeWithAccount(account, password, &conf)