Skip to content

Commit

Permalink
fix WiFiClient::availableForWrite() with no connexion (#3985)
Browse files Browse the repository at this point in the history
fix #3983
  • Loading branch information
d-a-v authored and devyte committed Dec 18, 2017
1 parent 08cdf15 commit f8b577b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/src/WiFiClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f8b577b

Please sign in to comment.