mirror of
https://github.com/costela/docker-etchosts.git
synced 2025-05-10 17:35:41 +02:00
don't leak kickoff channel
This commit is contained in:
parent
97d926b432
commit
00bfe9ea30
1 changed files with 1 additions and 0 deletions
|
@ -94,6 +94,7 @@ func syncAndListenForEvents(client dockerClienter) {
|
|||
// helper channel to ensure we run once without
|
||||
kickoff := make(chan bool, 1)
|
||||
kickoff <- true
|
||||
defer close(kickoff)
|
||||
|
||||
events, errors := client.Events(context.Background(), eventOpts)
|
||||
loop:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue