diff --git a/Sources/DotNet/Woopsa/Client/WoopsaClientProtocol.cs b/Sources/DotNet/Woopsa/Client/WoopsaClientProtocol.cs
index 0ef96c8..e95baea 100644
--- a/Sources/DotNet/Woopsa/Client/WoopsaClientProtocol.cs
+++ b/Sources/DotNet/Woopsa/Client/WoopsaClientProtocol.cs
@@ -299,7 +299,7 @@ private string Request(string path, NameValueCollection postData, TimeSpan timeo
throw;
}
}
- private void CancelPendingRequests() => _httpClient.CancelPendingRequests();
+ private void CancelPendingRequests() => _httpClient?.CancelPendingRequests();
#endregion
diff --git a/Sources/DotNet/Woopsa/Woopsa.csproj b/Sources/DotNet/Woopsa/Woopsa.csproj
index ac30f97..e96e56d 100644
--- a/Sources/DotNet/Woopsa/Woopsa.csproj
+++ b/Sources/DotNet/Woopsa/Woopsa.csproj
@@ -13,7 +13,7 @@
MIT
2.0.0
$(VersionSuffix)
- 1.3.1
+ 1.3.2
8.0
diff --git a/Sources/DotNet/WoopsaTest/UnitTestWoopsaClient.cs b/Sources/DotNet/WoopsaTest/UnitTestWoopsaClient.cs
index a2dacf9..5538262 100644
--- a/Sources/DotNet/WoopsaTest/UnitTestWoopsaClient.cs
+++ b/Sources/DotNet/WoopsaTest/UnitTestWoopsaClient.cs
@@ -18,6 +18,13 @@ public class UnitTestWoopsaClient
#endregion
+ [TestMethod]
+ public void TestClientSimpleInstanciationAndDispose()
+ {
+ using (WoopsaClient client = new WoopsaClient("http://localhost:10000/woopsa"))
+ { }
+ }
+
[TestMethod]
public void TestWoopsaClientSubscriptionChannel()
{