mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03: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: https://github.com/SerenityOS/serenity/commit/2a7cb4fe423 Pull-request: https://github.com/SerenityOS/serenity/pull/8288 Issue: https://github.com/SerenityOS/serenity/issues/8211
@ -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…
Reference in New Issue
Block a user