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

add proper queue destruction

This commit is contained in:
Marvin Klimke 2018-12-19 18:40:53 +01:00
parent 7e38cb9eb0
commit 26cdc6e58a

View file

@ -160,10 +160,19 @@ int rtp_start(struct node *n)
int rtp_stop(struct node *n)
{
int ret;
struct rtp *r = (struct rtp *) n->_vd;
/*mem_deref(r->rs);*/
ret = queue_close(&r->recv_queue);
if (ret)
warn("Problem closing queue");
ret = queue_destroy(&r->recv_queue);
if (ret)
warn("Problem destroying queue");
return io_destroy(&r->io);
}