mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
On device prevent closing an already closed handle, as when debugging under Windows this raises an exception.
This commit is contained in:
@@ -64,6 +64,8 @@ namespace DiscImageChef.Devices
|
|||||||
FreeBSD.Extern.cam_close_device((IntPtr)FileHandle);
|
FreeBSD.Extern.cam_close_device((IntPtr)FileHandle);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FileHandle = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -61,7 +61,7 @@ namespace DiscImageChef.Devices
|
|||||||
/// Gets the file handle representing this device
|
/// Gets the file handle representing this device
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The file handle</value>
|
/// <value>The file handle</value>
|
||||||
public object FileHandle { get; }
|
public object FileHandle { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the standard timeout for commands sent to this device
|
/// Gets or sets the standard timeout for commands sent to this device
|
||||||
|
|||||||
Reference in New Issue
Block a user