server: Don't lose LastChange events
authorJens Georg <jensg@openismus.com>
Tue, 11 Dec 2012 15:49:17 +0000 (16:49 +0100)
committerJens Georg <jensg@openismus.com>
Tue, 11 Dec 2012 20:08:30 +0000 (21:08 +0100)
Once sent, the boolean flag was set to true but never reset to false again so
only the event added last would show up in the LastChange that were sent
afterwards.

src/librygel-server/rygel-last-change.vala

index f9c4c75..87798cb 100644 (file)
@@ -49,6 +49,7 @@ internal class Rygel.LastChange : Object {
 
     public void add_event (LastChangeEntry entry) {
         if (this.clear_on_add) {
+            this.clear_on_add = false;
             this.entries.clear ();
         }
         this.entries.add (entry);