Skip to content

Commit

Permalink
Fix closing WinRM stdout twice (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
kke authored Apr 19, 2021
1 parent 33ff2ac commit 6b60b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winrm.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (c *WinRM) Exec(cmd string, opts ...exec.Option) error {
gotErrors = true
o.LogErrorf("%s: %s", c, err.Error())
}
command.Stdout.Close()
command.Stderr.Close()
}()

command.Wait()
Expand Down

0 comments on commit 6b60b02

Please sign in to comment.