forked from boostorg/mqtt5
Add intermediate is_cancelled checks in connect_op
Summary: related to T13706 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D27918
This commit is contained in:
1 parent
e5de307723
commit
2b686dd6cb
2 files changed
+50
-2
No files matched your search
@@ -70,6 +70,12 @@ public:
|
||||
|
||||
template <typename CompletionHandler>
|
||||
void operator()(on_timer, CompletionHandler&& h, error_code ec) {
|
||||
// The timer places a handler into the cancellation slot
|
||||
// and does not clear it. Therefore, we need to clear it explicitly
|
||||
// to properly remove the corresponding cancellation signal
|
||||
// in the test_broker.
|
||||
get_cancellation_slot().clear();
|
||||
|
||||
auto bh = std::apply(
|
||||
[h = std::move(h)](auto&&... args) mutable {
|
||||
return asio::append(std::move(h), std::move(args)...);
|
||||
|
||||
Reference in new issue
Block a user