summaryrefslogtreecommitdiff
path: root/libpod/container_attach.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/container_attach.go')
-rw-r--r--libpod/container_attach.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/libpod/container_attach.go b/libpod/container_attach.go
index 29e2d2fa6..5bfea3a0e 100644
--- a/libpod/container_attach.go
+++ b/libpod/container_attach.go
@@ -96,11 +96,9 @@ func (c *Container) attachContainerSocket(resize <-chan remotecommand.TerminalSi
}
receiveStdoutError := make(chan error)
- if streams.AttachOutput || streams.AttachError {
- go func() {
- receiveStdoutError <- redirectResponseToOutputStreams(streams.OutputStream, streams.ErrorStream, streams.AttachOutput, streams.AttachError, conn)
- }()
- }
+ go func() {
+ receiveStdoutError <- redirectResponseToOutputStreams(streams.OutputStream, streams.ErrorStream, streams.AttachOutput, streams.AttachError, conn)
+ }()
stdinDone := make(chan error)
go func() {