mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Centralize abort for dumpers
This commit is contained in:
@@ -57,8 +57,6 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
/// </summary>
|
||||
public void SecureDigital()
|
||||
{
|
||||
bool aborted;
|
||||
|
||||
if(dumpRaw)
|
||||
{
|
||||
if(force)
|
||||
@@ -182,9 +180,6 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
double maxSpeed = double.MinValue;
|
||||
double minSpeed = double.MaxValue;
|
||||
|
||||
aborted = false;
|
||||
System.Console.CancelKeyPress += (sender, e) => e.Cancel = aborted = true;
|
||||
|
||||
if(blocks == 0)
|
||||
{
|
||||
dumpLog.WriteLine("Unable to get device size.");
|
||||
|
||||
Reference in New Issue
Block a user