This commit is contained in:
e2002
2023-09-22 09:37:52 +03:00
parent 341e5185d7
commit 3662c2dbb7
4 changed files with 6 additions and 9 deletions

View File

@@ -316,10 +316,7 @@ void Audio::setDefaults() {
vector_clear_and_shrink(m_playlistContent);
m_hashQueue.clear(); m_hashQueue.shrink_to_fit(); // uint32_t vector
if(config.getMode()!=PM_SDCARD){
client.stop();
client.flush(); // release memory
clientsecure.stop();
clientsecure.flush();
if(_client) _client->stop();
_client = static_cast<WiFiClient*>(&client); /* default to *something* so that no NULL deref can happen */
}
playI2Sremains();