From 5bee3fefe543f7193ec732d3ba1a26efc68f50f6 Mon Sep 17 00:00:00 2001 From: Philip Stadermann Date: Tue, 2 Jan 2024 19:22:51 +0100 Subject: [PATCH] DotNet: Fix "Connect() was not called" on dispose without connect --- dotnet/Vaas/src/Vaas/Vaas.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/Vaas/src/Vaas/Vaas.cs b/dotnet/Vaas/src/Vaas/Vaas.cs index da9d001a..aad03e92 100644 --- a/dotnet/Vaas/src/Vaas/Vaas.cs +++ b/dotnet/Vaas/src/Vaas/Vaas.cs @@ -350,7 +350,7 @@ protected virtual void Dispose(bool disposing) { if (!disposing) return; - AuthenticatedClient.Dispose(); + _client?.Dispose(); _httpClient.Dispose(); }