Unstable v0.19.5.0

This commit is contained in:
Juan Pablo Arce
2022-09-14 12:47:17 -03:00
parent 3f2c843247
commit 1fd2a51bbb
158 changed files with 5702 additions and 4813 deletions
@@ -23,17 +23,17 @@ namespace Steamworks.ServerList
/// <summary>
/// When a new server is added, this function will get called
/// </summary>
public event Action OnChanges;
public Action OnChanges;
/// <summary>
/// Called for every responsive server
/// </summary>
public event Action<ServerInfo> OnResponsiveServer;
public Action<ServerInfo> OnResponsiveServer;
/// <summary>
/// Called for every unresponsive server
/// </summary>
public event Action<ServerInfo> OnUnresponsiveServer;
public Action<ServerInfo> OnUnresponsiveServer;
/// <summary>
/// A list of servers that responded. If you're only interested in servers that responded since you
@@ -65,14 +65,14 @@ namespace Steamworks.ServerList
var thisRequest = request;
while ( IsRefreshing )
while ( true )
{
await Task.Delay( 33 );
//
// The request has been cancelled or changed in some way
//
if ( request.Value == IntPtr.Zero || thisRequest.Value != request.Value )
if ( request.Value == IntPtr.Zero || thisRequest.Value != request.Value || !IsRefreshing )
return false;
if ( !SteamClient.IsValid )