[rygel/rygel-0-18] server: Dequeue item upon manual removal



commit 6e3f5ef6a92f25bbe0f12704384e98dc6f211cbc
Author: Jens Georg <jensg openismus com>
Date:   Tue Aug 6 10:43:50 2013 +0200

    server: Dequeue item upon manual removal
    
    If the client creates an object in DLNA.ORG_AnyContainer but doesn't
    upload anything to it and then removes it within the 35s timeout, the
    ObjectRemovalQueue would still trigger and cause criticals.
    
    This change just tries to dequeue everything we remove to fix this.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702633

 src/librygel-server/rygel-item-destroyer.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/librygel-server/rygel-item-destroyer.vala b/src/librygel-server/rygel-item-destroyer.vala
index ba42f2e..846fd2a 100644
--- a/src/librygel-server/rygel-item-destroyer.vala
+++ b/src/librygel-server/rygel-item-destroyer.vala
@@ -91,6 +91,8 @@ internal class Rygel.ItemDestroyer: GLib.Object, Rygel.StateMachine {
         } else {
             yield parent.remove_container (this.object_id, this.cancellable);
         }
+
+        ObjectRemovalQueue.get_default ().dequeue (media_object);
     }
 
     private async MediaObject fetch_object () throws Error {


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