Skip to content

Commit

Permalink
keep listening after a nil configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldcroes committed Nov 26, 2018
1 parent 4a5f544 commit fad4d53
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,14 @@ func (s *Server) listenProviders(stop chan bool) {
case <-stop:
return
case configMsg, ok := <-s.configurationChan:
if !ok || configMsg.Configuration == nil {
if !ok {
return
}
s.preLoadConfiguration(configMsg)
if configMsg.Configuration != nil {
s.preLoadConfiguration(configMsg)
} else {
log.Debugf("Received nil configuration from provider %q, skipping.", configMsg.ProviderName)
}
}
}
}
Expand Down

0 comments on commit fad4d53

Please sign in to comment.