From af190db942d0136b53e35c27f9f06152ca5e7eb5 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 7 Jul 2011 22:27:56 -0500 Subject: [PATCH] Fixed compiler warning by adding back forgotten error message for opening a storage session. --- DepotDownloader/ContentDownloader.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 421a257a..0bcacd8f 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -14,7 +14,7 @@ namespace DepotDownloader static class ContentDownloader { const string DEFAULT_DIR = "depots"; - const int STORAGE_RETRY_COUNT = 500; + const int MAX_STORAGE_RETRIES = 500; static Steam3Session steam3; @@ -181,8 +181,10 @@ namespace DepotDownloader csClient.Disconnect(); retryCount++; - if (retryCount > STORAGE_RETRY_COUNT) + if ( retryCount > MAX_STORAGE_RETRIES ) { + Console.WriteLine( "Unable to open storage: " + ex.Message ); + if (steam3 != null) steam3.Disconnect(); return;