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

@@ -1613,10 +1613,7 @@ void Audio::setDefaults(){
vector_clear_and_shrink(m_playlistURL);
vector_clear_and_shrink(m_playlistContent);
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 */
}
m_f_ctseen=false; // Contents type not seen yet