1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

hooks: dont run periodic hooks for stopped paths

This commit is contained in:
Steffen Vogel 2017-07-12 00:59:01 +02:00
parent 45ec574011
commit 794e4dee36

View file

@ -132,6 +132,9 @@ int main(int argc, char *argv[])
if (sn.stats > 0 && time_delta(&last, &now) > sn.stats) {
for (size_t i = 0; i < list_length(&sn.paths); i++) {
struct path *p = list_at(&sn.paths, i);
if (p->state != STATE_STARTED)
continue;
for (size_t j = 0; j < list_length(&p->hooks); j++) {
struct hook *h = list_at(&p->hooks, j);