From f6f09c3af2613755e90e0b53e6a174abb6093a28 Mon Sep 17 00:00:00 2001 From: DhyMik Date: Sat, 30 Dec 2023 08:44:08 +0100 Subject: [PATCH] Fix for SetTimeout() having no effect removed .HttpClient.Create() in HttpCLientUtil.SetTimeOut(TimeSpan timeSpan) --- Deepgram/Deepgram.csproj | 3 +++ Deepgram/Utilities/HttpClientUtil.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Deepgram/Deepgram.csproj b/Deepgram/Deepgram.csproj index f144ebd9..f2773496 100644 --- a/Deepgram/Deepgram.csproj +++ b/Deepgram/Deepgram.csproj @@ -14,6 +14,9 @@ Deepgram.NET SDK Deepgram Deepgram.NET + 3.4.1-beta + deepgram + diff --git a/Deepgram/Utilities/HttpClientUtil.cs b/Deepgram/Utilities/HttpClientUtil.cs index 424fe06b..e2f45492 100644 --- a/Deepgram/Utilities/HttpClientUtil.cs +++ b/Deepgram/Utilities/HttpClientUtil.cs @@ -35,7 +35,7 @@ public void SetTimeOut(TimeSpan timeSpan) // If the timeout has a new value, create a new HttpClient if (HttpClient.Timeout != timeSpan) { - HttpClient = Create(); + // HttpClient = Create(); // temporary bug fix until SDK v4 is released } // Set the timeout