wat
This commit is contained in:
parent
b16540e7df
commit
84ad126e88
1 changed files with 4 additions and 8 deletions
|
@ -89,18 +89,14 @@ func (t *TimeoutPipe) rwProxy() {
|
|||
|
||||
func (t *TimeoutPipe) closePipes(e error) {
|
||||
if e != nil {
|
||||
t.internalReader.Close()
|
||||
t.internalWriter.Close()
|
||||
|
||||
t.Reader.CloseWithError(e)
|
||||
t.Writer.Close()
|
||||
} else {
|
||||
t.Reader.Close()
|
||||
}
|
||||
|
||||
t.internalReader.Close()
|
||||
t.internalWriter.Close()
|
||||
|
||||
t.Reader.Close()
|
||||
t.Writer.Close()
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue