[rygel] media-export: Don't do work twice
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Don't do work twice
- Date: Thu, 12 Aug 2010 15:19:54 +0000 (UTC)
commit 1a761c9adb54c513c28a6bc8dfc010cd1b35f73e
Author: Jens Georg <mail jensge org>
Date: Thu Jul 29 18:57:43 2010 +0200
media-export: Don't do work twice
Container queue's head was fetched twice
.../rygel-media-export-harvesting-task.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvesting-task.vala b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
index 1b62d1b..ca36903 100644
--- a/src/plugins/media-export/rygel-media-export-harvesting-task.vala
+++ b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
@@ -213,13 +213,13 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine, GLib.Object
warning (_("failed to enumerate folder: %s"), err.message);
}
- cleanup_database (this.containers.peek_head () as DummyContainer);
+ cleanup_database ();
this.do_update ();
}
- private void cleanup_database (DummyContainer container) {
+ private void cleanup_database () {
// delete all children which are not in filesystem anymore
- container = (DummyContainer) this.containers.peek_head ();
+ var container = this.containers.peek_head () as DummyContainer;
try {
foreach (var child in container.children) {
this.cache.remove_by_id (child);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]