mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
Set readiness false on disconnect right away
This commit is contained in:
@@ -314,6 +314,11 @@ func (s *Server) newManagementMappingWorker(ctx context.Context, client proto.Pr
|
|||||||
s.Logger.Debug("Got mapping updates client from management server")
|
s.Logger.Debug("Got mapping updates client from management server")
|
||||||
|
|
||||||
err = s.handleMappingStream(ctx, mappingClient, &initialSyncDone)
|
err = s.handleMappingStream(ctx, mappingClient, &initialSyncDone)
|
||||||
|
|
||||||
|
if s.healthChecker != nil {
|
||||||
|
s.healthChecker.SetManagementConnected(false)
|
||||||
|
}
|
||||||
|
|
||||||
backoffDuration := b.Duration()
|
backoffDuration := b.Duration()
|
||||||
switch {
|
switch {
|
||||||
case errors.Is(err, context.Canceled),
|
case errors.Is(err, context.Canceled),
|
||||||
|
|||||||
Reference in New Issue
Block a user