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 ); var depotName = CDRManager.GetDepotName( depot );
Console.WriteLine( "{0} - {1}", depot, depotName ); Console.WriteLine( "{0} - {1}", depot, depotName );
} }
return;
} }
else
foreach ( int currentDepotId in depotIDs )
{ {
depotVersion = CDRManager.GetLatestDepotVersion(currentDepotId, ContentDownloader.Config.PreferBetaVersions); foreach ( int currentDepotId in depotIDs )
if ( depotVersion == -1 )
{ {
Console.WriteLine( "Error: Unable to find DepotID {0} in the CDR!", currentDepotId ); depotVersion = CDRManager.GetLatestDepotVersion(currentDepotId, ContentDownloader.Config.PreferBetaVersions);
ContentDownloader.ShutdownSteam3(); if ( depotVersion == -1 )
return; {
} Console.WriteLine( "Error: Unable to find DepotID {0} in the CDR!", currentDepotId );
break;
}
ContentDownloader.DownloadDepot(currentDepotId, depotVersion); ContentDownloader.DownloadDepot(currentDepotId, depotVersion);
}
} }
} }

Loading…
Cancel
Save