mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibTLS: Ensure that on_tls_finished is called only once
Connection state changes when the logical transport is closed should not trigger tls_finished.
This commit is contained in:
parent
cef2f55a8b
commit
2a7cb4fe42
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ bool TLSv12::check_connection_state(bool read)
|
|||
return false;
|
||||
}
|
||||
if (((read && m_context.application_buffer.size() == 0) || !read) && m_context.connection_finished) {
|
||||
if (m_context.application_buffer.size() == 0) {
|
||||
if (m_context.application_buffer.size() == 0 && m_context.connection_status != ConnectionStatus::Disconnected) {
|
||||
if (on_tls_finished)
|
||||
on_tls_finished();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue