From 6d6de367c0172842fbe4e371dc08a317cf177665 Mon Sep 17 00:00:00 2001 From: pschatzmann Date: Wed, 4 Dec 2024 09:11:08 +0100 Subject: [PATCH] USE_WIFI_CLIENT_SECURE --- src/AudioTools/CoreAudio/AudioHttp/URLStream.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AudioTools/CoreAudio/AudioHttp/URLStream.h b/src/AudioTools/CoreAudio/AudioHttp/URLStream.h index 73f20806f..0a81d77af 100644 --- a/src/AudioTools/CoreAudio/AudioHttp/URLStream.h +++ b/src/AudioTools/CoreAudio/AudioHttp/URLStream.h @@ -325,14 +325,16 @@ class URLStream : public AbstractURLStream { if (clientSecure != nullptr) { clientSecure->setHandshakeTimeout(handshakeTimeout); } +#endif +#ifdef ESP32 // Performance optimization for ESP32 if (!is_power_save) { esp_wifi_set_ps(WIFI_PS_NONE); } -#endif return true; } +#endif /// Process the Http request and handle redirects template