Skip to content

Commit 3098fca

Browse files
committed
Immediate executor fix
1 parent 2592957 commit 3098fca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/boost/redis/detail/connection_base.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ struct exec_op {
123123
// be stablished.
124124
if (info_->req_->get_config().cancel_if_not_connected && !conn_->is_open()) {
125125
BOOST_ASIO_CORO_YIELD
126-
asio::post(std::move(self));
126+
asio::dispatch(
127+
asio::get_associated_immediate_executor(self, self.get_io_executor()),
128+
std::move(self));
127129
return self.complete(error::not_connected, 0);
128130
}
129131

0 commit comments

Comments
 (0)