From 95b3292bcea3f8aa2a7e82da0190b36d84a005b4 Mon Sep 17 00:00:00 2001 From: Daniel Schaal Date: Sun, 17 Feb 2013 13:03:51 +0100 Subject: [PATCH] Revert "Call change_cb() only when there's an actual change." This reverts commit e02e290d7cccd0cfbc89bacf5c0be7934ee58ece. Conflicts: src/modules/reserve-monitor.c --- src/modules/reserve-monitor.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/reserve-monitor.c b/src/modules/reserve-monitor.c index 4aa4a2b..7d1a4fa 100644 --- a/src/modules/reserve-monitor.c +++ b/src/modules/reserve-monitor.c @@ -102,11 +102,9 @@ static DBusHandlerResult filter_handler( goto invalid; if (strcmp(name, m->service_name) == 0) { - unsigned old_busy = m->busy; - m->busy = get_busy(c, new); - if (m->busy != old_busy && m->change_cb) { + if (m->change_cb) { m->ref++; m->change_cb(m); rm_release(m); -- 1.8.1.3