Fix #1524 - webui: ignore mux updates from different adapter.
These were causing the store to be unecessarily reloaded and as a result the enabled flag would get cleared in the middle of editing.
This commit is contained in:
parent
bda8422d35
commit
39a2272b56
2 changed files with 5 additions and 0 deletions
|
@ -1010,6 +1010,8 @@ dvb_mux_build_msg(th_dvb_mux_instance_t *tdmi)
|
|||
htsmsg_t *m = htsmsg_create_map();
|
||||
char buf[100];
|
||||
|
||||
htsmsg_add_str(m, "adapterId", tdmi->tdmi_adapter->tda_identifier);
|
||||
|
||||
htsmsg_add_str(m, "id", tdmi->tdmi_identifier);
|
||||
htsmsg_add_u32(m, "enabled", tdmi->tdmi_enabled);
|
||||
htsmsg_add_str(m, "network", tdmi->tdmi_network ?: "");
|
||||
|
|
|
@ -120,6 +120,9 @@ tvheadend.dvb_muxes = function(adapterData, satConfStore) {
|
|||
|
||||
tvheadend.comet.on('dvbMux', function(m) {
|
||||
|
||||
if(m.adapterId !== adapterId)
|
||||
return;
|
||||
|
||||
r = store.getById(m.id)
|
||||
if (typeof r === 'undefined') {
|
||||
store.reload();
|
||||
|
|
Loading…
Add table
Reference in a new issue