add a line of comment

This commit is contained in:
xtaci
2019-05-14 11:08:51 +08:00
parent febb4a5f0d
commit 12e6c1b382
+1
View File
@@ -109,6 +109,7 @@ func (s *Stream) Write(b []byte) (n int, err error) {
deadline = timer.C
}
// check if stream has closed
select {
case <-s.die:
return 0, errors.WithStack(io.ErrClosedPipe)