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:
parent
7e38cb9eb0
commit
26cdc6e58a
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue