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:
@@ -46,7 +46,6 @@ namespace DiscImageChef.Core.Devices.Scanning
|
||||
public ScanResults SecureDigital()
|
||||
{
|
||||
ScanResults results = new ScanResults();
|
||||
bool aborted;
|
||||
byte[] cmdBuf;
|
||||
bool sense;
|
||||
results.Blocks = 0;
|
||||
@@ -146,9 +145,6 @@ namespace DiscImageChef.Core.Devices.Scanning
|
||||
|
||||
Random rnd = new Random();
|
||||
|
||||
aborted = false;
|
||||
System.Console.CancelKeyPress += (sender, e) => e.Cancel = aborted = true;
|
||||
|
||||
UpdateStatus?.Invoke($"Reading {blocksToRead} sectors at a time.");
|
||||
|
||||
MhddLog mhddLog = new MhddLog(mhddLogPath, dev, results.Blocks, blockSize, blocksToRead);
|
||||
|
||||
Reference in New Issue
Block a user