We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f9dcc7 commit 14b376eCopy full SHA for 14b376e
include/aedis/detail/connection_ops.hpp
@@ -139,7 +139,9 @@ struct exec_op {
139
140
if (is_cancelled(self)) {
141
if (info->is_written()) {
142
- if (self.get_cancellation_state().cancelled() == boost::asio::cancellation_type_t::terminal) {
+ using c_t = boost::asio::cancellation_type;
143
+ auto const c = self.get_cancellation_state().cancelled();
144
+ if ((c & (c_t::total | c_t::terminal)) != c_t::none) {
145
// Cancellation requires closing the connection
146
// otherwise it stays in inconsistent state.
147
conn->cancel(operation::run);
0 commit comments