async_disconnect will close the connection regardless of the current connection state

Summary: related to T13761

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D28057
This commit is contained in:
Korina Šimičević
2024-02-22 10:26:47 +01:00
parent 1c29b86030
commit 634a4bdfa9
11 changed files with 362 additions and 71 deletions

View File

@@ -127,7 +127,7 @@ private:
auto svc_ptr = _svc_ptr; // copy before this is moved
async_disconnect(
disconnect_rc_e::malformed_packet, props, false, svc_ptr,
disconnect_rc_e::malformed_packet, props, svc_ptr,
asio::prepend(std::move(*this), on_disconnect {})
);
}