core: Don't override error status
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 24 Aug 2010 14:41:14 +0000 (17:41 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 24 Aug 2010 14:53:36 +0000 (17:53 +0300)
src/rygel/rygel-import-resource.vala

index 5a8b711..dcbb55c 100644 (file)
@@ -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 ();
     }