dvb: adapter notification happening at wrong point meant UI not always updated

(cherry picked from commit 7588429c33)
This commit is contained in:
Adam Sutton 2013-04-07 22:10:21 +01:00
parent 4280b7c932
commit 4c9e13671d

View file

@ -738,6 +738,8 @@ dvb_adapter_stop ( th_dvb_adapter_t *tda, int opt )
tvhlog(LOG_DEBUG, "dvb", "%s stopped thread", tda->tda_rootpath);
}
dvb_adapter_notify(tda);
/* Don't close FE */
if (!tda->tda_idleclose && tda->tda_enabled) return;
@ -747,8 +749,6 @@ dvb_adapter_stop ( th_dvb_adapter_t *tda, int opt )
close(tda->tda_fe_fd);
tda->tda_fe_fd = -1;
}
dvb_adapter_notify(tda);
}
/**