mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix assertion in _init() about invalid state
This commit is contained in:
parent
a63b15609a
commit
71c6d5f9e5
2 changed files with 9 additions and 3 deletions
|
@ -54,6 +54,10 @@ SuperNode::SuperNode() :
|
|||
web(&api),
|
||||
json(nullptr)
|
||||
{
|
||||
nodes.state = STATE_DESTROYED;
|
||||
paths.state = STATE_DESTROYED;
|
||||
plugins.state = STATE_DESTROYED;
|
||||
|
||||
list_init(&nodes);
|
||||
list_init(&paths);
|
||||
list_init(&plugins);
|
||||
|
|
|
@ -171,11 +171,13 @@ int main(int argc, char *argv[])
|
|||
|
||||
const char *format = "villas.human"; /** @todo hardcoded for now */
|
||||
|
||||
struct node n;
|
||||
struct io io;
|
||||
struct pool q;
|
||||
struct node n = { .state = STATE_DESTROYED };
|
||||
struct io io = { .state = STATE_DESTROYED };
|
||||
struct pool q = { .state = STATE_DESTROYED };
|
||||
struct sample *t;
|
||||
|
||||
q.queue.state = STATE_DESTROYED;
|
||||
|
||||
Logger logger = logging.get("signal");
|
||||
|
||||
ret = utils::signals_init(quit);
|
||||
|
|
Loading…
Add table
Reference in a new issue