[rygel] core: Don't override error status
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Don't override error status
- Date: Tue, 24 Aug 2010 14:53:54 +0000 (UTC)
commit 2e79685445987fb41d8bfe31b864cdbd4adadb7e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Aug 24 17:41:14 2010 +0300
core: Don't override error status
src/rygel/rygel-import-resource.vala | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/rygel/rygel-import-resource.vala b/src/rygel/rygel-import-resource.vala
index 5a8b711..dcbb55c 100644
--- a/src/rygel/rygel-import-resource.vala
+++ b/src/rygel/rygel-import-resource.vala
@@ -128,16 +128,17 @@ internal class Rygel.ImportResource : GLib.Object, Rygel.StateMachine {
Priority.LOW,
this.cancellable,
this.copy_progress_cb);
+
+ this.status = TransferStatus.COMPLETED;
+
+ debug (_("Import of '%s' to '%s' completed"),
+ source_uri,
+ destination_uri);
} catch (Error err) {
warning ("%s", err.message);
this.status = TransferStatus.ERROR;
}
- this.status = TransferStatus.COMPLETED;
-
- debug (_("Import of '%s' to '%s' completed"),
- source_uri,
- destination_uri);
this.completed ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]