Do not generate subchannels if aborted. Fixes #453

This commit is contained in:
2020-11-21 15:35:19 +00:00
parent fa5f7e9bf2
commit 80963d1cb8

View File

@@ -1346,7 +1346,9 @@ namespace Aaru.Core.Devices.Dumping
_resume.BadSubchannels.AddRange(subchannelExtents);
_resume.BadSubchannels.Sort();
if(_generateSubchannels && _outputPlugin.SupportedSectorTags.Contains(SectorTagType.CdSectorSubchannel))
if(_generateSubchannels &&
_outputPlugin.SupportedSectorTags.Contains(SectorTagType.CdSectorSubchannel) &&
!_aborted)
Media.CompactDisc.GenerateSubchannels(subchannelExtents, tracks, trackFlags, blocks, subLog, _dumpLog,
InitProgress, UpdateProgress, EndProgress, _outputPlugin);