From 41ca8be8f50f48f6c0fd74d077bf1a8d62697256 Mon Sep 17 00:00:00 2001 From: Lorenzo Taylor Date: Sun, 17 Sep 2006 04:44:16 +0000 Subject: [PATCH] Fixed premature return from burn_disc_erase on some drives. It now returns only when the drive is finished blanking. --- trunk/libburn/drive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/libburn/drive.c b/trunk/libburn/drive.c index e14ee8bc..9acc0b68 100644 --- a/trunk/libburn/drive.c +++ b/trunk/libburn/drive.c @@ -320,8 +320,8 @@ void burn_disc_erase_sync(struct burn_drive *d, int fast) /* read the initial 0 stage */ while (!d->test_unit_ready(d) && d->get_erase_progress(d) == 0) sleep(1); - while (!d->test_unit_ready(d) && - (d->progress.sector = d->get_erase_progress(d)) > 0) + while ((d->progress.sector = d->get_erase_progress(d)) > 0 || + !d->test_unit_ready(d)) sleep(1); d->progress.sector = 0x10000; d->busy = BURN_DRIVE_IDLE;