simplify expressions

android-build
heck 2 years ago
parent 64b6857bd2
commit 49c124c3db

@ -23,11 +23,11 @@ namespace pEp {
void try_wait()
{
std::unique_lock<std::mutex> lock(mtx);
if (_stop.load() == false) {
if (!_stop.load()) {
return;
}
while(_stop.load() == true) {
while(_stop.load()) {
cv.wait(lock);
}
}

Loading…
Cancel
Save