mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
Shutdown ISteamMatchmakingServers properly
This commit is contained in:
parent
43f09dc2ed
commit
d290c26db1
@ -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();
|
||||
|
@ -81,6 +81,7 @@ public static void Shutdown()
|
||||
SteamParties.Shutdown();
|
||||
SteamNetworkingUtils.Shutdown();
|
||||
SteamNetworkingSockets.Shutdown();
|
||||
ServerList.Base.Shutdown();
|
||||
|
||||
SteamAPI.Shutdown();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user