diff --git a/server/src/node.c b/server/src/node.c index dfda0c8fe..410a7c95b 100644 --- a/server/src/node.c +++ b/server/src/node.c @@ -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