[rygel] media-export: Handle cancellation correctly in idle-func



commit e2c1ea57869cf3b70d9038fd052294450f7d17c1
Author: Jens Georg <mail jensge org>
Date:   Thu Jul 29 18:52:22 2010 +0200

    media-export: Handle cancellation correctly in idle-func

 .../rygel-media-export-harvesting-task.vala        |    2 ++
 1 files changed, 2 insertions(+), 0 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 6db7796..1b62d1b 100644
--- a/src/plugins/media-export/rygel-media-export-harvesting-task.vala
+++ b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
@@ -234,6 +234,8 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine, GLib.Object
 
     private bool on_idle () {
         if (this.cancellable.is_cancelled ()) {
+            this.completed ();
+
             return false;
         }
 



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