Skip to content

Commit dffabe6

Browse files
omeshpbryanmacfarlane
authored andcommitted
Fix issue with destroying proxy agent (#46)
Proxy agent doesn't support destroy function
1 parent 226a926 commit dffabe6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/HttpClient.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,7 @@ export class HttpClient implements ifm.IHttpClient {
239239
if (this._agent) {
240240
this._agent.destroy();
241241
}
242-
243-
if (this._proxyAgent) {
244-
this._proxyAgent.destroy();
245-
}
246-
242+
247243
this._disposed = true;
248244
}
249245

0 commit comments

Comments
 (0)