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

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

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

Loading…
Cancel
Save