Added uri refresh to step 2.

This commit is contained in:
Michael Bucari-Tovo 2021-07-03 21:54:28 -06:00
parent d73701c939
commit 05426eb618

View File

@ -142,6 +142,9 @@ namespace AaxDecrypter
if (File.Exists(jsonDownloadState)) if (File.Exists(jsonDownloadState))
{ {
nfsPersister = new NetworkFileStreamPersister(jsonDownloadState); nfsPersister = new NetworkFileStreamPersister(jsonDownloadState);
//If More thaan ~1 hour has elapsed since getting the download url, it will expire.
//The new url will be to the same file.
nfsPersister.NetworkFileStream.SetUriForSameFile(new Uri(downloadLicense.DownloadUrl));
} }
else else
{ {