mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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
Notes:
sideshowbarker
2024-07-18 11:24:27 +09:00
Author: https://github.com/alimpfard
Commit: 2a7cb4fe42
Pull-request: https://github.com/SerenityOS/serenity/pull/8288
Issue: https://github.com/SerenityOS/serenity/issues/8211
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