We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07a59e7 commit b50aed2Copy full SHA for b50aed2
src/KubernetesClient/Kubernetes.cs
@@ -209,6 +209,7 @@ protected virtual void Dispose(bool disposing)
209
210
// Dispose the client
211
HttpClient?.Dispose();
212
+ HttpClient = null;
213
214
// Dispose the certificates
215
if (CaCerts is not null)
@@ -221,11 +222,13 @@ protected virtual void Dispose(bool disposing)
221
222
CaCerts.Clear();
223
}
224
-
225
ClientCert?.Dispose();
226
+ ClientCert = null;
227
- HttpClient = null;
228
+ FirstMessageHandler?.Dispose();
229
FirstMessageHandler = null;
230
+
231
+ HttpClientHandler?.Dispose();
232
HttpClientHandler = null;
233
234
0 commit comments