Fixed compiler warning by adding back forgotten error message for opening a storage session.

pull/8/head
Scott Ehlert 15 years ago
parent cd0014aab5
commit af190db942

@ -14,7 +14,7 @@ namespace DepotDownloader
static class ContentDownloader static class ContentDownloader
{ {
const string DEFAULT_DIR = "depots"; const string DEFAULT_DIR = "depots";
const int STORAGE_RETRY_COUNT = 500; const int MAX_STORAGE_RETRIES = 500;
static Steam3Session steam3; static Steam3Session steam3;
@ -181,8 +181,10 @@ namespace DepotDownloader
csClient.Disconnect(); csClient.Disconnect();
retryCount++; retryCount++;
if (retryCount > STORAGE_RETRY_COUNT) if ( retryCount > MAX_STORAGE_RETRIES )
{ {
Console.WriteLine( "Unable to open storage: " + ex.Message );
if (steam3 != null) if (steam3 != null)
steam3.Disconnect(); steam3.Disconnect();
return; return;

Loading…
Cancel
Save