This commit is contained in:
Zack Scholl 2018-09-26 09:41:12 -07:00
parent ea7ed1a2db
commit f6e2560742
1 changed files with 14 additions and 14 deletions

View File

@ -161,20 +161,20 @@ func pipe(conn1 net.Conn, conn2 net.Conn) {
writer2 := bufio.NewWriter(conn2)
for {
b1 := <-chan1:
if b1 == nil {
return
}
writer2.Write(b1)
writer2.Flush()
// case b2 := <-chan2:
// if b2 == nil {
// return
// }
// writer1.Write(b2)
// writer1.Flush()
// }
b1 := <-chan1
if b1 == nil {
return
}
writer2.Write(b1)
writer2.Flush()
// case b2 := <-chan2:
// if b2 == nil {
// return
// }
// writer1.Write(b2)
// writer1.Flush()
// }
}
}