tun2: lol nope

This commit is contained in:
Cadey Ratio 2017-10-01 08:55:46 -07:00
parent 63e342bba1
commit 3fefd31625
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
1 changed files with 1 additions and 4 deletions

View File

@ -125,10 +125,7 @@ func (c *Connection) RoundTrip(req *http.Request) (*http.Response, error) {
if err != nil {
return nil, errors.Wrap(err, ErrCantOpenSessionStream.Error())
}
defer func() {
time.Sleep(5 * time.Minute)
stream.Close()
}()
defer stream.Close()
err = req.Write(stream)
if err != nil {