Skip to content

Commit

Permalink
Merge pull request #599 from ghjm/devel
Browse files Browse the repository at this point in the history
Avoid dropping buffered results data
  • Loading branch information
shanemcd authored Apr 25, 2022
2 parents aead0ba + 0981379 commit d5c6315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/workceptor/remote_work.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (rw *remoteUnit) monitorRemoteStdout(mw *utils.JobContext) {
return
}
}()
_, err = io.Copy(stdout, conn)
_, err = io.Copy(stdout, reader)
close(doneChan)
if err != nil {
var errmsg string
Expand Down

0 comments on commit d5c6315

Please sign in to comment.