Skip to content

Commit

Permalink
let sdz creation fail without failing download
Browse files Browse the repository at this point in the history
  • Loading branch information
DeinFreund committed Jan 7, 2018
1 parent 60f6d00 commit 6f75389
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Shared/PlasmaDownloader/Packages/PackageDownload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,16 @@ void MasterDownloadThread()

if (rapidHandling != RapidHandling.DefaultSdp)
{
var convertor = new Sdp2Sdz();
convertor.ConvertSdp2Sdz(paths, packageHash, targetSdz, (p)=> { zipProgress = p; });

if (rapidHandling == RapidHandling.SdzNameHash) RemoveOtherSdzVersions(entry);
try
{
var convertor = new Sdp2Sdz();
convertor.ConvertSdp2Sdz(paths, packageHash, targetSdz, (p) => { zipProgress = p; });

if (rapidHandling == RapidHandling.SdzNameHash) RemoveOtherSdzVersions(entry);
}catch(Exception ex)
{
Trace.TraceError("Error converting {0} to sdz {1}", Name, ex);
}
}


Expand Down

0 comments on commit 6f75389

Please sign in to comment.