LibHTTP: Ensure finish_up() is not called more than once

There's no reason to manually call it on TLS close, the HTTP reading
logic is smart enough to handle connection closes transparently.
Fixes #8211.
This commit is contained in:
Ali Mohammad Pur 2021-06-28 16:12:04 +04:30 committed by Andreas Kling
commit 55fa2329de
Notes: sideshowbarker 2024-07-18 11:24:23 +09:00
2 changed files with 1 additions and 3 deletions

View file

@ -38,9 +38,6 @@ void HttpsJob::start()
});
}
};
m_socket->on_tls_finished = [&] {
finish_up();
};
m_socket->on_tls_certificate_request = [this](auto&) {
if (on_certificate_requested)
on_certificate_requested(*this);