Skip to content

Commit

Permalink
watcher: allow immediately released or already released semaphores to…
Browse files Browse the repository at this point in the history
… trickle down into future wait logic
  • Loading branch information
Will committed Sep 26, 2024
1 parent 1f43148 commit 343e6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devel/include/wtr/watcher-/watch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class watch {

inline auto close() noexcept -> bool
{
return this->living.release() != sb::state::pending
return this->living.release() != sb::state::error
&& this->watching.valid() && this->watching.get();
};

Expand Down

0 comments on commit 343e6b5

Please sign in to comment.