From 289af06733d73603372b327553571bbcd66c55c3 Mon Sep 17 00:00:00 2001 From: Ryan Kistner Date: Wed, 15 Oct 2014 19:50:19 -0600 Subject: [PATCH] Discard CDNClients instead of looping forever --- DepotDownloader/ContentDownloader.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 32f5ffb7..8a1a64af 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -774,16 +774,12 @@ namespace DepotDownloader try { chunkData = client.DownloadDepotChunk(depot.id, data); - break; + cdnClients.Enqueue(client); } catch { Console.WriteLine("Encountered error downloading chunk {0}", chunkID); } - finally - { - cdnClients.Enqueue(client); - } } if (chunkData == null)