Skip to content

Commit

Permalink
[SE] is busy fix
Browse files Browse the repository at this point in the history
/build before_merge

Signed-off-by: iceseer <iceseer@gmail.com>
  • Loading branch information
iceseer committed Aug 25, 2021
1 parent 661e493 commit 6cc7d87
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions irohad/subscription/scheduler_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ namespace iroha::subscription {
return true;
}
}
is_busy_ = false;
return false;
}

Expand Down Expand Up @@ -120,13 +121,9 @@ namespace iroha::subscription {
task();
} catch (...) {
}
} else {
{
std::lock_guard lock(tasks_cs_);
is_busy_ = false;
}
} else
event_.wait(untilFirst());
}

} while (proceed_.test_and_set());
return 0;
}
Expand Down

0 comments on commit 6cc7d87

Please sign in to comment.