Skip to content

Commit

Permalink
Remove unnecessary notify
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Oct 27, 2024
1 parent 9919b34 commit 5e206ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nano/node/blockprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,9 @@ void nano::block_processor::run ()
}
else
{
condition.notify_one ();
condition.wait (lock);
condition.wait (lock, [this] {
return stopped || !queue.empty ();
});
}
}
}
Expand Down

0 comments on commit 5e206ec

Please sign in to comment.