From 84ad126e88fa6aa5e89fa7394e89e94013393294 Mon Sep 17 00:00:00 2001 From: zutto Date: Thu, 11 Jan 2018 20:19:43 +0200 Subject: [PATCH] wat --- TimeoutPipe.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/TimeoutPipe.go b/TimeoutPipe.go index 983e706..89ffbb3 100644 --- a/TimeoutPipe.go +++ b/TimeoutPipe.go @@ -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.internalReader.Close() - t.internalWriter.Close() - t.Reader.Close() - t.Writer.Close() } + + t.internalReader.Close() + t.internalWriter.Close() + t.Writer.Close() } //