Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
avoid canceling multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Mar 29, 2019
1 parent ccf20b0 commit fe16408
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apifile.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ type apiFile struct {
func (f *apiFile) reset() error {
if f.r != nil {
_ = f.r.Cancel()
f.r = nil
}
req := f.core.request("cat", f.path.String())
if f.at != 0 {
Expand Down

0 comments on commit fe16408

Please sign in to comment.