DepotDownloader: Fixed hang when using both -game and -listdepots with credentials.

pull/8/head
Nicholas Hastings 13 years ago
parent a93ac77b99
commit 1566774a6e

@ -191,21 +191,20 @@ namespace DepotDownloader
var depotName = CDRManager.GetDepotName( depot );
Console.WriteLine( "{0} - {1}", depot, depotName );
}
return;
}
foreach ( int currentDepotId in depotIDs )
else
{
depotVersion = CDRManager.GetLatestDepotVersion(currentDepotId, ContentDownloader.Config.PreferBetaVersions);
if ( depotVersion == -1 )
foreach ( int currentDepotId in depotIDs )
{
Console.WriteLine( "Error: Unable to find DepotID {0} in the CDR!", currentDepotId );
ContentDownloader.ShutdownSteam3();
return;
}
depotVersion = CDRManager.GetLatestDepotVersion(currentDepotId, ContentDownloader.Config.PreferBetaVersions);
if ( depotVersion == -1 )
{
Console.WriteLine( "Error: Unable to find DepotID {0} in the CDR!", currentDepotId );
break;
}
ContentDownloader.DownloadDepot(currentDepotId, depotVersion);
ContentDownloader.DownloadDepot(currentDepotId, depotVersion);
}
}
}

Loading…
Cancel
Save