Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Aug 31, 2024
1 parent f5aa175 commit 142ac6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func Pipe(alice, bob io.ReadWriteCloser, isPassive bool) (errA, errB error) {
_, *err = Copy(dst, src)

// wait for a constant time before closing the streams
if !isPassive {
if isPassive {
<-time.After(closeWait * time.Second)
}

Expand Down

0 comments on commit 142ac6b

Please sign in to comment.