internal/tun2: wait, go has contexts

This commit is contained in:
Cadey Ratio 2017-12-12 10:21:38 -08:00
parent ae2f5ca097
commit 7106209616
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ func (c *Connection) RoundTrip(req *http.Request) (*http.Response, error) {
}
go func() {
time.Sleep(30 * time.Minute)
<-req.Context().Done()
stream.Close()
}()