channels: do not delete channel when last refd service is removed.
This commit is contained in:
parent
f30bebceb8
commit
93fe5b9f72
1 changed files with 0 additions and 6 deletions
|
@ -463,7 +463,6 @@ service_destroy(service_t *t)
|
|||
{
|
||||
elementary_stream_t *st;
|
||||
th_subscription_t *s;
|
||||
channel_t *ch = t->s_ch;
|
||||
|
||||
if(t->s_dtor != NULL)
|
||||
t->s_dtor(t);
|
||||
|
@ -506,11 +505,6 @@ service_destroy(service_t *t)
|
|||
avgstat_flush(&t->s_rate);
|
||||
|
||||
service_unref(t);
|
||||
|
||||
if(ch != NULL) {
|
||||
if(LIST_FIRST(&ch->ch_services) == NULL)
|
||||
channel_delete(ch);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue