fixed a bug where a write error would persist across sessions
This commit is contained in:
parent
ddb4045959
commit
d59faf1f7d
1 changed files with 3 additions and 2 deletions
|
@ -70,6 +70,9 @@ int SSLClientImpl::connect(const char *host, uint16_t port) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
m_print("Base ethernet client connected!");
|
m_print("Base ethernet client connected!");
|
||||||
|
// clear the write error
|
||||||
|
setWriteError(SSL_OK);
|
||||||
|
// start ssl!
|
||||||
return m_start_ssl(host);
|
return m_start_ssl(host);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,8 +257,6 @@ int SSLClientImpl::m_start_ssl(const char* host) {
|
||||||
}
|
}
|
||||||
Serial.println();
|
Serial.println();
|
||||||
Serial.println(m_ses_param.cipher_suite, HEX);
|
Serial.println(m_ses_param.cipher_suite, HEX);
|
||||||
// clear the error flag: we've connected!
|
|
||||||
setWriteError(SSL_OK);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue