mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
fix WiFiClient::availableForWrite() with no connexion (#3985)
fix #3983
This commit is contained in:
@ -156,7 +156,7 @@ bool WiFiClient::getNoDelay() {
|
|||||||
|
|
||||||
size_t WiFiClient::availableForWrite ()
|
size_t WiFiClient::availableForWrite ()
|
||||||
{
|
{
|
||||||
return _client->availableForWrite();
|
return _client? _client->availableForWrite(): 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t WiFiClient::write(uint8_t b)
|
size_t WiFiClient::write(uint8_t b)
|
||||||
|
Reference in New Issue
Block a user