Skip to content
Prev Previous commit
Next Next commit
Create streamdev even if specifically unset
  • Loading branch information
paulocsanz committed Jul 8, 2021
commit 34d4325eb400812455dfb27d8a3edf1547e3bd63
2 changes: 1 addition & 1 deletion libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ bool HTTPClient::connect(void)
if(_reuse && _canReuse && connected()) {
DEBUG_HTTPCLIENT("[HTTP-Client] connect: already connected, reusing connection\n");

#if defined(NO_GLOBAL_INSTANCES)
#if defined(NO_GLOBAL_INSTANCES) || defined(NO_GLOBAL_STREAMDEV)
StreamNull devnull;
#endif
_client->sendAvailable(devnull); // clear _client's output (all of it, no timeout)
Expand Down