Skip to content

Commit

Permalink
Set aborted when started == false
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed May 22, 2018
1 parent 20d080f commit 3f1e520
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export class Request extends Servie implements RequestOptions {
this[kAborted] = true
this.events.emit('abort')

// Set `aborted` automatically when the request has not started.
if (!this.started) this.aborted = true

return true
}

Expand Down

0 comments on commit 3f1e520

Please sign in to comment.