DepotDownloader: Close file handles when done with files for S3 downloads.

pull/8/head
Nicholas Hastings 13 years ago
parent 08c63cc2db
commit 251d1dbd5a

@ -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();
}
}

Loading…
Cancel
Save