Merge pull request #261 from seemethere/ensure_channel

[17.10] ensure channel is allocated
This commit is contained in:
Andrew Hsu
2017-09-30 09:36:10 -07:00
committed by GitHub
+4 -1
View File
@@ -290,8 +290,11 @@ func attachContainer(
return nil, errAttach
}
ch := make(chan error, 1)
*errCh = ch
go func() {
*errCh <- func() error {
ch <- func() error {
streamer := hijackedIOStreamer{
streams: dockerCli,
inputStream: in,