Shutdown ISteamMatchmakingServers properly

This commit is contained in:
Garry Newman 2019-05-10 12:13:30 +01:00
parent 43f09dc2ed
commit d290c26db1
2 changed files with 9 additions and 0 deletions

View File

@ -27,6 +27,11 @@ internal static ISteamMatchmakingServers Internal
}
}
internal static void Shutdown()
{
_internal = null;
}
#endregion
@ -85,6 +90,9 @@ public virtual async Task<bool> RunQueryAsync( float timeoutSeconds = 10 )
if ( request.Value == IntPtr.Zero || thisRequest.Value != request.Value )
return false;
if ( !SteamClient.IsValid )
return false;
var r = Responsive.Count;
UpdatePending();

View File

@ -81,6 +81,7 @@ public static void Shutdown()
SteamParties.Shutdown();
SteamNetworkingUtils.Shutdown();
SteamNetworkingSockets.Shutdown();
ServerList.Base.Shutdown();
SteamAPI.Shutdown();
}