Bugfix. Unload playlist on "ps" JSON.

This commit is contained in:
Blaž Kristan 2022-10-13 07:06:49 +02:00
parent 37a4a4dcdf
commit a6ab4feca5

View File

@ -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;
} }