Unverified Commit d97aa317 authored by Wolle's avatar Wolle Committed by GitHub

fix errnr 9, bad file number, if ssl

parent 8259da06
...@@ -524,7 +524,7 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) { ...@@ -524,7 +524,7 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
strcat(resp, "Connection: keep-alive\r\n\r\n"); strcat(resp, "Connection: keep-alive\r\n\r\n");
uint32_t t = millis(); uint32_t t = millis();
if(_client->connect(hostwoext, port, m_f_ssl ? m_timeout_ms_ssl : m_timeout_ms)) { if(_client->connect(hostwoext, port, m_f_ssl ? m_timeout_ms_ssl : m_timeout_ms)) {
_client->setNoDelay(true); if(!m_f_ssl) _client->setNoDelay(true);
// if(audio_info) audio_info("SSL/TLS Connected to server"); // if(audio_info) audio_info("SSL/TLS Connected to server");
_client->print(resp); _client->print(resp);
uint32_t dt = millis() - t; uint32_t dt = millis() - t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment