Do not try to find SCSI read command if the medium is not written. Fixes #458

This commit is contained in:
2020-11-20 21:23:49 +00:00
parent 07b70d854f
commit 9eeef9a8a2

View File

@@ -61,6 +61,9 @@ namespace Aaru.Core.Devices
if(Blocks == 0)
GetDeviceBlocks();
if(Blocks == 0)
return true;
byte[] senseBuf;
int tries = 0;
uint lba = 0;