mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Close device when finished command execution.
This commit is contained in:
@@ -886,6 +886,8 @@ namespace DiscImageChef.Commands
|
||||
}
|
||||
|
||||
Core.Statistics.AddCommand("device-info");
|
||||
|
||||
dev.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -257,6 +257,8 @@ namespace DiscImageChef.Commands
|
||||
dumpLog.Close();
|
||||
|
||||
Core.Statistics.AddCommand("dump-media");
|
||||
|
||||
dev.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -451,6 +451,8 @@ namespace DiscImageChef.Commands
|
||||
|
||||
DicConsole.WriteLine("Media identified as {0}", scsiInfo.MediaType);
|
||||
Core.Statistics.AddMedia(scsiInfo.MediaType, true);
|
||||
|
||||
dev.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -112,6 +112,8 @@ namespace DiscImageChef.Commands
|
||||
(long)results.E, (long)results.F, (long)results.Blocks, (long)results.Errored,
|
||||
(long)(results.Blocks - results.Errored));
|
||||
Core.Statistics.AddCommand("media-scan");
|
||||
|
||||
dev.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user