mirror of
https://github.com/JDM170/SteamAchievementManager
synced 2025-12-10 05:37:18 +07:00
Release steam pipes only if they exist
This commit is contained in:
@@ -91,10 +91,14 @@ namespace SAM.API
|
||||
|
||||
~Client()
|
||||
{
|
||||
if (this.SteamClient != null)
|
||||
if (this.SteamClient != null && this._Pipe > 0)
|
||||
{
|
||||
this.SteamClient.ReleaseUser(this._Pipe, this._User);
|
||||
this._User = 0;
|
||||
if (this._User > 0)
|
||||
{
|
||||
this.SteamClient.ReleaseUser(this._Pipe, this._User);
|
||||
this._User = 0;
|
||||
}
|
||||
|
||||
this.SteamClient.ReleaseSteamPipe(this._Pipe);
|
||||
this._Pipe = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user