Skip to content

Commit 6d6de36

Browse files
committed
USE_WIFI_CLIENT_SECURE
1 parent e01d88e commit 6d6de36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AudioTools/CoreAudio/AudioHttp/URLStream.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,14 +325,16 @@ class URLStream : public AbstractURLStream {
325325
if (clientSecure != nullptr) {
326326
clientSecure->setHandshakeTimeout(handshakeTimeout);
327327
}
328+
#endif
328329

330+
#ifdef ESP32
329331
// Performance optimization for ESP32
330332
if (!is_power_save) {
331333
esp_wifi_set_ps(WIFI_PS_NONE);
332334
}
333-
#endif
334335
return true;
335336
}
337+
#endif
336338

337339
/// Process the Http request and handle redirects
338340
template <typename T>

0 commit comments

Comments
 (0)