mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Fix log message in CopyLoop
This commit is contained in:
parent
1d6a2580c6
commit
a6d4570c23
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ func copyLoop(c1 io.ReadWriteCloser, c2 io.ReadWriteCloser, shutdown chan struct
|
|||
// Ignore io.ErrClosedPipe because it is likely caused by the
|
||||
// termination of copyer in the other direction.
|
||||
if _, err := io.CopyBuffer(dst, src, buffer); err != nil && err != io.ErrClosedPipe {
|
||||
log.Printf("io.Copy inside CopyLoop generated an error: %v", err)
|
||||
log.Printf("io.CopyBuffer inside CopyLoop generated an error: %v", err)
|
||||
}
|
||||
once.Do(func() {
|
||||
close(done)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue