mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
Userland: Migrate to argument-less deferred_invoke
Only one place used this argument and it was to hold on to a strong ref for the object. Since we already do that now, there's no need to keep this argument around since this can be easily captured. This commit contains no changes.
This commit is contained in:
parent
e9121f8b1f
commit
8ea22121ac
32 changed files with 72 additions and 75 deletions
|
@ -97,7 +97,7 @@ bool TLSv12::common_connect(const struct sockaddr* saddr, socklen_t length)
|
|||
auto packet = build_hello();
|
||||
write_packet(packet);
|
||||
|
||||
deferred_invoke([&](auto&) {
|
||||
deferred_invoke([&] {
|
||||
m_handshake_timeout_timer = Core::Timer::create_single_shot(
|
||||
m_max_wait_time_for_handshake_in_seconds * 1000, [&] {
|
||||
auto timeout_diff = Core::DateTime::now().timestamp() - m_context.handshake_initiation_timestamp;
|
||||
|
@ -141,7 +141,7 @@ void TLSv12::read_from_socket()
|
|||
auto notify_client_for_app_data = [&] {
|
||||
if (m_context.application_buffer.size() > 0) {
|
||||
if (!did_schedule_read) {
|
||||
deferred_invoke([&](auto&) { read_from_socket(); });
|
||||
deferred_invoke([&] { read_from_socket(); });
|
||||
did_schedule_read = true;
|
||||
}
|
||||
if (on_tls_ready_to_read)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue