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