This commit is contained in:
zutto 2018-01-11 20:19:43 +02:00
parent b16540e7df
commit 84ad126e88

View file

@ -89,18 +89,14 @@ func (t *TimeoutPipe) rwProxy() {
func (t *TimeoutPipe) closePipes(e error) { func (t *TimeoutPipe) closePipes(e error) {
if e != nil { if e != nil {
t.internalReader.Close()
t.internalWriter.Close()
t.Reader.CloseWithError(e) t.Reader.CloseWithError(e)
t.Writer.Close()
} else { } else {
t.Reader.Close()
}
t.internalReader.Close() t.internalReader.Close()
t.internalWriter.Close() t.internalWriter.Close()
t.Reader.Close()
t.Writer.Close() t.Writer.Close()
}
} }
// //