[Fix] Send Login signal on error (#3737)

Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
This commit is contained in:
Mohamed Javid 2023-07-12 03:13:16 +08:00 committed by GitHub
parent 09dff82db5
commit 5fd9c5de66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -508,7 +508,6 @@ func (b *GethStatusBackend) LoginAccount(request *requests.Login) error {
if err != nil { if err != nil {
// Stop node for clean up // Stop node for clean up
_ = b.StopNode() _ = b.StopNode()
return err
} }
return b.LoggedIn(request.KeyUID, err) return b.LoggedIn(request.KeyUID, err)
} }
@ -734,7 +733,7 @@ func (b *GethStatusBackend) StartNodeWithAccount(acc multiaccounts.Account, pass
func (b *GethStatusBackend) LoggedIn(keyUID string, err error) error { func (b *GethStatusBackend) LoggedIn(keyUID string, err error) error {
if err != nil { if err != nil {
signal.SendLoggedIn(nil, nil, err) signal.SendLoggedIn(nil, nil, err)
return nil return err
} }
settings, err := b.GetSettings() settings, err := b.GetSettings()
if err != nil { if err != nil {