feat(ssl): Do not check if client is connected if already disconnected (#11356)
This commit is contained in:
parent
91fd517cf1
commit
72a582b908
1 changed files with 4 additions and 3 deletions
|
|
@ -315,9 +315,10 @@ int NetworkClientSecure::available() {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t NetworkClientSecure::connected() {
|
uint8_t NetworkClientSecure::connected() {
|
||||||
|
if (_connected) {
|
||||||
uint8_t dummy = 0;
|
uint8_t dummy = 0;
|
||||||
read(&dummy, 0);
|
read(&dummy, 0);
|
||||||
|
}
|
||||||
return _connected;
|
return _connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue