mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-24 13:45:37 +03:00
Close pipes properly
This commit is contained in:
parent
04a02ba59b
commit
cb85e41c52
@ -48,6 +48,19 @@ public void Dispose()
|
||||
{
|
||||
if ( _client != null )
|
||||
{
|
||||
if ( _hpipe > 0 )
|
||||
{
|
||||
if ( _huser > 0 )
|
||||
_client.ReleaseUser( _hpipe, _huser );
|
||||
|
||||
_client.BReleaseSteamPipe( _hpipe );
|
||||
|
||||
_huser = 0;
|
||||
_hpipe = 0;
|
||||
}
|
||||
|
||||
_friends = null;
|
||||
|
||||
_client.BShutdownIfAllPipesClosed();
|
||||
_client = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user