File tree 1 file changed +7
-2
lines changed
libraries/ESP8266WiFi/src
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,13 @@ WiFiClient* SList<WiFiClient>::_s_first = 0;
48
48
49
49
50
50
WiFiClient::WiFiClient ()
51
- : _client(0 )
51
+ : _client(0 ), _timeout( 5000 )
52
52
{
53
53
WiFiClient::_add (this );
54
54
}
55
55
56
- WiFiClient::WiFiClient (ClientContext* client) : _client(client)
56
+ WiFiClient::WiFiClient (ClientContext* client)
57
+ : _client(client), _timeout(5000 )
57
58
{
58
59
_client->ref ();
59
60
WiFiClient::_add (this );
@@ -69,6 +70,8 @@ WiFiClient::~WiFiClient()
69
70
WiFiClient::WiFiClient (const WiFiClient& other)
70
71
{
71
72
_client = other._client ;
73
+ _timeout = other._timeout ;
74
+ _localPort = other._localPort ;
72
75
if (_client)
73
76
_client->ref ();
74
77
WiFiClient::_add (this );
@@ -79,6 +82,8 @@ WiFiClient& WiFiClient::operator=(const WiFiClient& other)
79
82
if (_client)
80
83
_client->unref ();
81
84
_client = other._client ;
85
+ _timeout = other._timeout ;
86
+ _localPort = other._localPort ;
82
87
if (_client)
83
88
_client->ref ();
84
89
return *this ;
You can’t perform that action at this time.
0 commit comments