Skip to content

Commit

Permalink
Fix issue with destroying proxy agent (#46)
Browse files Browse the repository at this point in the history
Proxy agent doesn't support destroy function
  • Loading branch information
omeshp authored and bryanmacfarlane committed Jan 30, 2018
1 parent 226a926 commit dffabe6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/HttpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,7 @@ export class HttpClient implements ifm.IHttpClient {
if (this._agent) {
this._agent.destroy();
}

if (this._proxyAgent) {
this._proxyAgent.destroy();
}


this._disposed = true;
}

Expand Down

0 comments on commit dffabe6

Please sign in to comment.