Skip to content

Commit 4c24c26

Browse files
committed
fix
1 parent 2ffbc62 commit 4c24c26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/server/server.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,8 @@ struct server_response {
17441744
return res;
17451745
}
17461746

1747-
condition_results.wait(mutex_results, [&]{
1747+
std::lock_guard<std::mutex> lock(mutex_results);
1748+
condition_results.wait(lock, [&]{
17481749
return !queue_results.empty();
17491750
});
17501751
}

0 commit comments

Comments
 (0)