summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-07-18 10:42:13 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-07-18 09:12:00 +0000
commit6caaf56214ffa2696f81119dd88273a0087e549b (patch)
tree9d03bca4e01166a3a3d40d8f482fc15b86a187ad /internal
parente815dcfb1aa1230c714d306cf246e5ce20d2e48c (diff)
Server: Go to GettingConfig after InvalidProfile
Could be we have just done OAuth and are in state main...
Diffstat (limited to 'internal')
-rw-r--r--internal/server/servers.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/server/servers.go b/internal/server/servers.go
index d06c37d..023e622 100644
--- a/internal/server/servers.go
+++ b/internal/server/servers.go
@@ -113,6 +113,10 @@ func (s *Servers) ConnectWithCallbacks(ctx context.Context, srv *Server, pTCP bo
if !errors.Is(err, ErrInvalidProfile) {
return cfg, err
}
+ err = s.cb.GettingConfig()
+ if err != nil {
+ return nil, err
+ }
// Get a new profile from the callback
pr, err := s.cb.InvalidProfile(ctx, srv)
if err != nil {