[rygel] core: Don't serve place_holder items



commit 7b97da085e3a4db149c319b6e00befed18492e36
Author: Jens Georg <mail jensge org>
Date:   Thu May 19 15:58:20 2011 +0200

    core: Don't serve place_holder items

 src/rygel/rygel-http-get.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-http-get.vala b/src/rygel/rygel-http-get.vala
index e7118d4..47e2de5 100644
--- a/src/rygel/rygel-http-get.vala
+++ b/src/rygel/rygel-http-get.vala
@@ -78,7 +78,7 @@ internal class Rygel.HTTPGet : HTTPRequest {
     protected override async void find_item () throws Error {
         yield base.find_item ();
 
-        if (unlikely (this.item.size == 0)) {
+        if (unlikely (this.item.place_holder)) {
             throw new HTTPRequestError.NOT_FOUND ("Item '%s' is empty",
                                                   this.item.id);
         }



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