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

do not stop nodes, which haven't been started (this should be replaced by a more powerful state machine later)

This commit is contained in:
Steffen Vogel 2015-10-13 16:19:00 +02:00
parent 3c1c052041
commit ef03551757

View file

@ -77,6 +77,10 @@ int node_start(struct node *n)
int node_stop(struct node *n)
{ INDENT
int ret;
if (!n->refcnt) /* Unused and not started. No reason to stop.. */
return -1;
info("Stopping node '%s'", n->name);
{ INDENT