mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-11-15 15:09:31 +01:00
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:
@@ -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 {})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user