[brasero] While we ask for a reprobe of the drive contents, wait for it to be finished before going on
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] While we ask for a reprobe of the drive contents, wait for it to be finished before going on
- Date: Sat, 17 Oct 2009 12:12:35 +0000 (UTC)
commit c8ccf83d6bff5b16481fec2285ec3fc6fa401652
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat Oct 17 14:05:58 2009 +0200
While we ask for a reprobe of the drive contents, wait for it to be finished before going on
libbrasero-burn/brasero-burn.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn.c b/libbrasero-burn/brasero-burn.c
index 155286e..e2739aa 100644
--- a/libbrasero-burn/brasero-burn.c
+++ b/libbrasero-burn/brasero-burn.c
@@ -145,7 +145,6 @@ static guint brasero_burn_signals [LAST_SIGNAL] = { 0 };
#define MAX_EJECT_ATTEMPTS 5
#define MAX_MOUNT_ATTEMPTS 40
-#define MAX_REPROBE_ATTEMPTS 80
#define MOUNT_TIMEOUT 500
@@ -284,7 +283,6 @@ brasero_burn_sleep (BraseroBurn *burn, gint msec)
static BraseroBurnResult
brasero_burn_reprobe (BraseroBurn *burn)
{
- guint attempts = 0;
BraseroBurnPrivate *priv;
BraseroBurnResult result = BRASERO_BURN_OK;
@@ -294,12 +292,10 @@ brasero_burn_reprobe (BraseroBurn *burn)
/* reprobe the medium and wait for it to be probed */
brasero_drive_reprobe (priv->dest);
- while (attempts < MAX_REPROBE_ATTEMPTS && brasero_drive_probing (priv->dest)) {
+ while (brasero_drive_probing (priv->dest)) {
result = brasero_burn_sleep (burn, 250);
if (result != BRASERO_BURN_OK)
return result;
-
- attempts ++;
}
return result;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]