rygel r611 - trunk/src/rygel



Author: zeeshanak
Date: Mon Feb 16 17:33:19 2009
New Revision: 611
URL: http://svn.gnome.org/viewvc/rygel?rev=611&view=rev

Log:
Correct the logic of creating ContainerUpdateIDs value.

Modified:
   trunk/src/rygel/rygel-content-directory.vala

Modified: trunk/src/rygel/rygel-content-directory.vala
==============================================================================
--- trunk/src/rygel/rygel-content-directory.vala	(original)
+++ trunk/src/rygel/rygel-content-directory.vala	Mon Feb 16 17:33:19 2009
@@ -210,8 +210,11 @@
         var update_ids = "";
 
         foreach (var container in this.updated_containers) {
-            update_ids += "," + container.id + "," +
-                          container.update_id.to_string ();
+            if (update_ids != "") {
+                update_ids += ",";
+            }
+
+            update_ids += container.id + "," + container.update_id.to_string ();
         }
 
         return update_ids;



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