Avoid missing blk file errors on early download abort
This commit is contained in:
@@ -295,6 +295,11 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase
|
|||||||
}
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
|
if (!fi.Exists)
|
||||||
|
{
|
||||||
|
Logger.LogDebug("{dlName}: Detected early cancellation of download", fi.Name);
|
||||||
|
return;
|
||||||
|
}
|
||||||
Logger.LogDebug("{dlName}: Detected cancellation of download, partially extracting files for {id}", fi.Name, gameObjectHandler);
|
Logger.LogDebug("{dlName}: Detected cancellation of download, partially extracting files for {id}", fi.Name, gameObjectHandler);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
Reference in New Issue
Block a user