Skip to content

Commit b15b39e

Browse files
authored
Merge pull request #95 from pennam/disable-brssl-io-close
Add configuration define to disable br_sslio_close
2 parents a0b53d4 + 32e43bb commit b15b39e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/BearSSLClient.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,11 @@ void BearSSLClient::flush()
203203
void BearSSLClient::stop()
204204
{
205205
if (_client->connected()) {
206+
#if !defined(ARDUINO_BEARSSL_DISABLE_TLS_CLOSE)
206207
if ((br_ssl_engine_current_state(&_sc.eng) & BR_SSL_CLOSED) == 0) {
207208
br_sslio_close(&_ioc);
208209
}
209-
210+
#endif
210211
_client->stop();
211212
}
212213
}

0 commit comments

Comments
 (0)