diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 8949b846..4f447235 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -858,6 +858,7 @@ namespace DepotDownloader { size_downloaded += file.TotalSize; Console.WriteLine("{0,6:#00.00}% {1}", ((float)size_downloaded / (float)complete_download_size) * 100.0f, download_path); + fs.Close(); continue; } else @@ -884,6 +885,7 @@ namespace DepotDownloader if (encrypted_chunk == null) { Console.WriteLine("Unable to download chunk id {0} for depot {1}", chunkID, depotId); + fs.Close(); return; } } @@ -899,6 +901,8 @@ namespace DepotDownloader Console.Write("{0,6:#00.00}%", ((float)size_downloaded / (float)complete_download_size) * 100.0f); } + fs.Close(); + Console.WriteLine(); } }