From 6f75389988dad8b976c17efb980e61331ab1cc97 Mon Sep 17 00:00:00 2001 From: DeinFreund Date: Sun, 7 Jan 2018 17:04:40 +0100 Subject: [PATCH] let sdz creation fail without failing download --- .../PlasmaDownloader/Packages/PackageDownload.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Shared/PlasmaDownloader/Packages/PackageDownload.cs b/Shared/PlasmaDownloader/Packages/PackageDownload.cs index ca1aef8b42..6f38bc44e2 100644 --- a/Shared/PlasmaDownloader/Packages/PackageDownload.cs +++ b/Shared/PlasmaDownloader/Packages/PackageDownload.cs @@ -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); + } }