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:
parent
45ec574011
commit
794e4dee36
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue