Allow MediaScan to be aborted.

This commit is contained in:
2019-04-21 00:59:01 +01:00
parent 359efb369c
commit 66108773d2
6 changed files with 16 additions and 14 deletions

View File

@@ -50,7 +50,6 @@ namespace DiscImageChef.Core.Devices.Scanning
public ScanResults Scsi()
{
ScanResults results = new ScanResults();
bool aborted;
MhddLog mhddLog;
IbgLog ibgLog;
byte[] senseBuf;
@@ -241,9 +240,6 @@ namespace DiscImageChef.Core.Devices.Scanning
results.MinSpeed = double.MaxValue;
results.UnreadableSectors = new List<ulong>();
aborted = false;
System.Console.CancelKeyPress += (sender, e) => e.Cancel = aborted = true;
if(compactDisc)
{
if(toc == null)