Skip to content

Commit

Permalink
Fix for SetTimeout() having no effect
Browse files Browse the repository at this point in the history
removed .HttpClient.Create() in HttpCLientUtil.SetTimeOut(TimeSpan timeSpan)
  • Loading branch information
dhymik committed Dec 30, 2023
1 parent 12c5acb commit f6f09c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Deepgram/Deepgram.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<Product>Deepgram.NET SDK</Product>
<PackageId>Deepgram</PackageId>
<Title>Deepgram.NET</Title>
<Version>3.4.1-beta</Version>
<Authors>deepgram</Authors>
<Company />
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Deepgram/Utilities/HttpClientUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6f09c3

Please sign in to comment.