mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
close queues when nodes are stopped
This commit is contained in:
parent
7f7ae44acc
commit
2ee4bc7589
2 changed files with 8 additions and 0 deletions
|
@ -479,6 +479,10 @@ int villas::node::mqtt_stop(NodeCompat *n)
|
|||
if (ret != MOSQ_ERR_SUCCESS)
|
||||
goto mosquitto_error;
|
||||
|
||||
ret = queue_signalled_close(&m->queue);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
|
||||
mosquitto_error:
|
||||
|
|
|
@ -563,6 +563,10 @@ int villas::node::redis_stop(NodeCompat *n)
|
|||
break;
|
||||
}
|
||||
|
||||
ret = queue_signalled_close(&r->queue);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue