mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add method to close devices.
This commit is contained in:
@@ -44,6 +44,11 @@ namespace DiscImageChef.Devices
|
||||
/// <see cref="Device" /> is reclaimed by garbage collection.
|
||||
/// </summary>
|
||||
~Device()
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
public void Close()
|
||||
{
|
||||
if(FileHandle == null) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user