@cryptotaxi247 / kubo / commits / c791d7335

avoid canceling multiple times

This commit was moved from ipfs/go-ipfs-http-client@fe16408225d4c9b688528f67ffabe08198b53ab5

Steven Allen committed Mar 26, 2019 at 17:05 UTC c791d73355e33139e2face5fc96884c5444f96c7
1 file changed +1
client/httpapi/apifile.go
+1
@@ -57,6 +57,7 @@ type apiFile struct {
57 func (f *apiFile) reset() error {
58 if f.r != nil {
59 _ = f.r.Cancel()
60 + f.r = nil
61 }
62 req := f.core.request("cat", f.path.String())
63 if f.at != 0 {