Bugfix. Unload playlist on "ps" JSON.
This commit is contained in:
parent
37a4a4dcdf
commit
a6ab4feca5
@ -400,6 +400,7 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
|
|||||||
root.remove("time"); // may be added in UI call
|
root.remove("time"); // may be added in UI call
|
||||||
root.remove("ps");
|
root.remove("ps");
|
||||||
if (root.size() == 0) {
|
if (root.size() == 0) {
|
||||||
|
unloadPlaylist(); // we need to unload playlist
|
||||||
applyPreset(ps, callMode); // async load (only preset ID was specified)
|
applyPreset(ps, callMode); // async load (only preset ID was specified)
|
||||||
return stateResponse;
|
return stateResponse;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user