Skip to content

Commit

Permalink
GH-529 priority is in reverse order
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Sep 18, 2024
1 parent 2cfe332 commit 64593d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class exec_pri_queue : public boost::asio::execution_context
if (!que.empty()) {
// find the associated priority
auto i = std::lower_bound(que.ordered_begin(), que.ordered_end(), priority, [](const auto& h, int priority) {
return h->priority() < priority;
return h->priority() > priority;
});
if (i != que.ordered_end() && (*i)->priority() == priority && (*i)->id() == id)
return;
Expand Down

0 comments on commit 64593d9

Please sign in to comment.