Skip to content

Commit

Permalink
Tiny fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnbrq committed Oct 29, 2023
1 parent fb61571 commit 9a41576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/cxxdes/core/impl/environment.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ private:

struct token_comp {
static bool has_priority(token *tkn) {
// this token can only be processed by step(), because
// no coroutine<> object references it.
// it has an exception.
return tkn->coro_data == nullptr && tkn->eptr != nullptr;
// this token can only be processed by step(), because
// no coroutine<> or handler object reference it.
return tkn->coro_data == nullptr && tkn->handler == nullptr && tkn->eptr != nullptr;
}

bool operator()(token *tkn_a, token *tkn_b) const {
Expand Down

0 comments on commit 9a41576

Please sign in to comment.