Do not retry when pregap is correctly found to be 0.

This commit is contained in:
2020-01-10 00:51:59 +00:00
parent 2801c4f67a
commit ee57b72c4f
2 changed files with 2 additions and 2 deletions

View File

@@ -199,7 +199,7 @@ namespace DiscImageChef.Core.Devices.Dumping
bool crcOk = false;
// Check if pregap is 0
for(retries = 0; retries < 10; retries++)
for(retries = 0; retries < 10 && !pregapFound; retries++)
{
sense = supportsRwSubchannel ? GetSectorForPregapRaw(dev, (uint)lba, dbDev, out subBuf)
: GetSectorForPregapQ16(dev, (uint)lba, dbDev, out subBuf);