From 6ab491c0a0a060e2b520a443665968c846b5a86e Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Tue, 11 Dec 2012 16:49:17 +0100 Subject: [PATCH] server: Don't lose LastChange events 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librygel-server/rygel-last-change.vala b/src/librygel-server/rygel-last-change.vala index f9c4c75..87798cb 100644 --- a/src/librygel-server/rygel-last-change.vala +++ b/src/librygel-server/rygel-last-change.vala @@ -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); -- 2.7.4