Merge pull request #577 from stevvooe/allocate-channel

cli/command/container: ensure channel is allocated
This commit is contained in:
Sebastiaan van Stijn 2017-09-30 12:33:40 +02:00 committed by GitHub
commit 583015b896
1 changed files with 4 additions and 1 deletions

View File

@ -290,8 +290,11 @@ func attachContainer(
return nil, errAttach return nil, errAttach
} }
ch := make(chan error, 1)
*errCh = ch
go func() { go func() {
*errCh <- func() error { ch <- func() error {
streamer := hijackedIOStreamer{ streamer := hijackedIOStreamer{
streams: dockerCli, streams: dockerCli,
inputStream: in, inputStream: in,