mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-28 15:45:29 +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
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
@ -85,6 +90,9 @@ public virtual async Task<bool> RunQueryAsync( float timeoutSeconds = 10 )
|
|||||||
if ( request.Value == IntPtr.Zero || thisRequest.Value != request.Value )
|
if ( request.Value == IntPtr.Zero || thisRequest.Value != request.Value )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if ( !SteamClient.IsValid )
|
||||||
|
return false;
|
||||||
|
|
||||||
var r = Responsive.Count;
|
var r = Responsive.Count;
|
||||||
|
|
||||||
UpdatePending();
|
UpdatePending();
|
||||||
|
@ -81,6 +81,7 @@ public static void Shutdown()
|
|||||||
SteamParties.Shutdown();
|
SteamParties.Shutdown();
|
||||||
SteamNetworkingUtils.Shutdown();
|
SteamNetworkingUtils.Shutdown();
|
||||||
SteamNetworkingSockets.Shutdown();
|
SteamNetworkingSockets.Shutdown();
|
||||||
|
ServerList.Base.Shutdown();
|
||||||
|
|
||||||
SteamAPI.Shutdown();
|
SteamAPI.Shutdown();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user