mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Allow MediaScan to be aborted.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user