mirror of
https://github.com/traefik/traefik.git
synced 2025-08-20 14:11:13 +02:00
Verify ctx when we send configuration message in docker provider
This commit is contained in:
parent
a20f5bda0b
commit
9b0586cba7
@ -210,10 +210,15 @@ func (p *Provider) Provide(configurationChan chan<- types.ConfigMessage, pool *s
|
|||||||
}
|
}
|
||||||
configuration := p.buildConfiguration(containers)
|
configuration := p.buildConfiguration(containers)
|
||||||
if configuration != nil {
|
if configuration != nil {
|
||||||
configurationChan <- types.ConfigMessage{
|
message := types.ConfigMessage{
|
||||||
ProviderName: "docker",
|
ProviderName: "docker",
|
||||||
Configuration: configuration,
|
Configuration: configuration,
|
||||||
}
|
}
|
||||||
|
select {
|
||||||
|
case configurationChan <- message:
|
||||||
|
case <-ctx.Done():
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user