epggrab: channels - fix wrong condition in epggrab_channel_link_delete()

This commit is contained in:
Jaroslav Kysela 2014-10-02 11:28:14 +02:00
parent 5d06c06b09
commit 3373ac6ba3

View file

@ -50,7 +50,7 @@ epggrab_channel_link_delete
{
LIST_REMOVE(ecl, ecl_chn_link);
LIST_REMOVE(ecl, ecl_epg_link);
if (!delconf && ecl->ecl_epggrab->mod->ch_save)
if (delconf && ecl->ecl_epggrab->mod->ch_save)
ecl->ecl_epggrab->mod->ch_save(ecl->ecl_epggrab->mod, ecl->ecl_epggrab);
free(ecl);
}