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:
parent
3c1c052041
commit
ef03551757
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue