1
0
Fork 0
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:
Steffen Vogel 2016-11-20 02:50:12 -05:00
parent eda6c66f0e
commit 0f7bd02e41

View file

@ -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)