mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix: initialize hooks only if required
This commit is contained in:
parent
eda6c66f0e
commit
0f7bd02e41
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ int hook_init(struct hook *h, struct list *nodes, struct list *paths, struct set
|
|||
.settings = settings
|
||||
};
|
||||
|
||||
return h->cb(h, HOOK_INIT, &i);
|
||||
if (h->type & HOOK_INIT)
|
||||
return h->cb(h, HOOK_INIT, &i);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
void hook_destroy(struct hook *h)
|
||||
|
|
Loading…
Add table
Reference in a new issue