From a93ac77b998d15ee195c0754eccf48810bfbac4d Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Mon, 12 Nov 2012 12:23:14 -0500 Subject: [PATCH] DepotDownloader: Fixed compile error in last commit. --- DepotDownloader/ContentDownloader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 0879c059..2eb98bb5 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -17,7 +17,7 @@ namespace DepotDownloader const int MAX_STORAGE_RETRIES = 500; const int MAX_CONNECT_RETRIES = 10; const int NUM_STEAM3_CONNECTIONS = 4; - const TimeSpan STEAM2_CONNECT_TIMEOUT = TimeSpan.FromSeconds(5); + const int STEAM2_CONNECT_TIMEOUT_SECONDS = 5; public static DownloadConfig Config = new DownloadConfig(); @@ -704,7 +704,7 @@ namespace DepotDownloader string txtManifest = Path.Combine(installDir, "manifest.txt"); ContentServerClient csClient = new ContentServerClient(); - csClient.ConnectionTimeout = STEAM2_CONNECT_TIMEOUT; + csClient.ConnectionTimeout = TimeSpan.FromSeconds(STEAM2_CONNECT_TIMEOUT_SECONDS); ContentServerClient.StorageSession session = GetSteam2StorageSession(contentServers, csClient, depotId, depotVersion); if(session == null)