Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
parthverma1 committed Aug 19, 2024
1 parent b3f7272 commit a2162a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/http2/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ class Http2Request extends EventEmitter {
)

// The client was created in an unreferenced state and is referenced when a stream is created
this._client.ref();
this._client.ref()
this.stream = this._client.request(this.requestHeaders, {endStream})

const unreferenceFn = () => {
this._client.unref();
this.stream.off('close', unreferenceFn);
this._client.unref()
this.stream.off('close', unreferenceFn)
}

this.stream.on('close', unreferenceFn);
this.stream.on('close', unreferenceFn)

this.registerListeners()

Expand Down

0 comments on commit a2162a9

Please sign in to comment.