Skip to content

Commit

Permalink
epg: Correctly unlink from channels (avoid rearming timers causing se…
Browse files Browse the repository at this point in the history
…gfault)

Fixes tvheadend#553
Fixes tvheadend#533
Fixes tvheadend#513
  • Loading branch information
andoma committed Jun 8, 2011
1 parent 24a833b commit f8710c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/epg.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,12 @@ epg_unlink_from_channel(channel_t *ch)
{
event_t *e;

while((e = ch->ch_epg_events.root) != NULL)
epg_remove_event_from_channel(ch, e);

gtimer_disarm(&ch->ch_epg_timer_head);
gtimer_disarm(&ch->ch_epg_timer_current);

while((e = ch->ch_epg_events.root) != NULL)
epg_remove_event_from_channel(ch, e);
}


Expand Down

0 comments on commit f8710c7

Please sign in to comment.