svc_clean_dynamic(): Actually clean dirty services ...

Add missing call to svc_mark_clean() in while() loop.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-09-04 16:01:05 +02:00
parent 684314db0f
commit 718e82bc10
+3 -2
View File
@@ -440,9 +440,10 @@ void svc_clean_dynamic(void (*cb)(svc_t *))
svc_t *svc = svc_dynamic_iterator(1);
while (svc) {
if (svc->dirty == -1 && cb)
if (svc->dirty == -1 && cb) {
cb(svc);
svc_mark_clean(svc);
}
svc = svc_dynamic_iterator(0);
}
}