[rygel] media-export: small refactor



commit 56430abd3a0b5a0f4f5a92c24c92a423baf562ec
Author: Jens Georg <mail jensge org>
Date:   Fri Oct 16 20:36:38 2009 +0200

    media-export: small refactor
    
    Idle.add is always used in conjunction with do_update, so just move it inside

 .../media-export/rygel-media-export-harvester.vala |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvester.vala b/src/plugins/media-export/rygel-media-export-harvester.vala
index b0e5685..c083b30 100644
--- a/src/plugins/media-export/rygel-media-export-harvester.vala
+++ b/src/plugins/media-export/rygel-media-export-harvester.vala
@@ -167,7 +167,6 @@ public class Rygel.MediaExportHarvester : GLib.Object {
 
         cleanup_database (this.containers.peek_head() as DummyContainer);
         this.do_update ();
-        Idle.add(this.on_idle);
     }
 
     void cleanup_database (DummyContainer container) {
@@ -292,7 +291,6 @@ public class Rygel.MediaExportHarvester : GLib.Object {
 
             this.files.pop_head ();
             this.do_update ();
-            Idle.add(this.on_idle);
         }
     }
 
@@ -306,7 +304,6 @@ public class Rygel.MediaExportHarvester : GLib.Object {
         if (file == entry.file) {
             this.files.pop_head ();
             this.do_update ();
-            Idle.add(this.on_idle);
         }
     }
 
@@ -316,5 +313,6 @@ public class Rygel.MediaExportHarvester : GLib.Object {
             this.containers.peek_head ().updated ();
             this.containers.pop_head ();
         }
+        Idle.add(this.on_idle);
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]