fix: remove double call to server Close.

This commit is contained in:
Ludovic Fernandez 2019-12-09 15:14:06 +01:00 committed by Traefiker Bot
parent ddbf4470a1
commit 1a7a3a4233
3 changed files with 5 additions and 9 deletions

View file

@ -49,8 +49,8 @@ func NewConfigurationWatcher(routinesPool *safe.Pool, pvd provider.Provider, pro
// Start the configuration watcher.
func (c *ConfigurationWatcher) Start() {
c.routinesPool.Go(func(stop chan bool) { c.listenProviders(stop) })
c.routinesPool.Go(func(stop chan bool) { c.listenConfigurations(stop) })
c.routinesPool.Go(c.listenProviders)
c.routinesPool.Go(c.listenConfigurations)
c.startProvider()
}