Skip to content

Commit

Permalink
WiFiClient: initialize _timeout properly
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed May 20, 2017
1 parent 3363be0 commit 4812cae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libraries/ESP8266WiFi/src/WiFiClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ WiFiClient* SList<WiFiClient>::_s_first = 0;


WiFiClient::WiFiClient()
: _client(0), _timeout(5000)
: _client(0)
{
_timeout = 5000;
WiFiClient::_add(this);
}

WiFiClient::WiFiClient(ClientContext* client)
: _client(client), _timeout(5000)
: _client(client)
{
_timeout = 5000;
_client->ref();
WiFiClient::_add(this);
}
Expand Down

0 comments on commit 4812cae

Please sign in to comment.