Fix feedback

This commit is contained in:
Theodor S. Midtlien
2026-06-08 16:15:07 +02:00
parent 23c82b32ff
commit 7b0f5f42f3
4 changed files with 24 additions and 2 deletions

View File

@@ -1035,7 +1035,12 @@ func (s *Server) logoutFromProfile(ctx context.Context, profile *profilemanager.
return s.sendLogoutRequest(ctx)
}
config, err := profilemanager.GetConfig(profile.Path)
cfgPath := profile.Path
if cfgPath == "" {
cfgPath = profilemanager.DefaultConfigPath
}
config, err := profilemanager.GetConfig(cfgPath)
if err != nil {
return fmt.Errorf("profile '%s' not found", profile.ID)
}