Skip to content

Commit

Permalink
v1.1.2 remove RedisClient.Finalize #149
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Jun 12, 2023
1 parent f2286aa commit c06ad29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/FreeRedis/FreeRedis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<AssemblyName>FreeRedis</AssemblyName>
<PackageId>FreeRedis</PackageId>
<RootNamespace>FreeRedis</RootNamespace>
<Version>1.1.1</Version>
<Version>1.1.2</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/2881099/FreeRedis</PackageProjectUrl>
<Description>FreeRedis is .NET redis client, supports cluster, sentinel, master-slave, pipeline, transaction and connection pool.</Description>
Expand Down
3 changes: 0 additions & 3 deletions src/FreeRedis/RedisClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,8 @@ public RedisClient(ConnectionStringBuilder sentinelConnectionString, string[] se
Prefix = topOwner.Prefix;
}

~RedisClient() => this.Dispose();
int _disposeCounter;
public void Dispose()
{
if (Interlocked.Increment(ref _disposeCounter) != 1) return;
Adapter.Dispose();
_pubsubPriv?.Dispose();
}
Expand Down

0 comments on commit c06ad29

Please sign in to comment.