[brasero/gnome-2-28] 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/gnome-2-28] While we ask for a reprobe of the drive contents, wait for it to be finished before going on
- Date: Mon, 19 Oct 2009 15:16:29 +0000 (UTC)
commit 860879ed5db46282a92920728ea8773f46fc147b
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 5abbfed..e940896 100644
--- a/libbrasero-burn/brasero-burn.c
+++ b/libbrasero-burn/brasero-burn.c
@@ -147,7 +147,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
@@ -261,7 +260,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;
@@ -271,12 +269,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]