mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
fix WiFiClient::availableForWrite() with no connexion (#3985)
fix #3983
This commit is contained in:
parent
08cdf153d4
commit
f8b577b6c3
@ -156,7 +156,7 @@ bool WiFiClient::getNoDelay() {
|
||||
|
||||
size_t WiFiClient::availableForWrite ()
|
||||
{
|
||||
return _client->availableForWrite();
|
||||
return _client? _client->availableForWrite(): 0;
|
||||
}
|
||||
|
||||
size_t WiFiClient::write(uint8_t b)
|
||||
|
Loading…
x
Reference in New Issue
Block a user