Update daemon server adminURL and managementURL fields (#314)

Removed the UP call in the login function

Attempt login on change to get status
This commit is contained in:
Maycon Santos
2022-05-18 00:22:47 +02:00
committed by GitHub
parent 77e58295e7
commit 001cf98dce
2 changed files with 38 additions and 25 deletions

View File

@@ -247,11 +247,6 @@ func (s *serviceClient) login() error {
}
}
if _, err := s.conn.Up(s.ctx, &proto.UpRequest{}); err != nil {
log.Errorf("up service: %v", err)
return err
}
return nil
}
@@ -276,6 +271,12 @@ func (s *serviceClient) menuUpClick() error {
}
}
status, err = conn.Status(s.ctx, &proto.StatusRequest{})
if err != nil {
log.Errorf("get service status: %v", err)
return err
}
if status.Status != string(internal.StatusIdle) {
log.Warnf("already connected")
return nil