We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 985f6d1 commit e7e2bf6Copy full SHA for e7e2bf6
1 file changed
bindings/cpp/async_result.cpp
@@ -199,7 +199,10 @@ bool async_result<T>::get(T &entry)
199
{
200
wait(session::throw_at_get);
201
for (auto it = m_data->results.begin(); it != m_data->results.end(); ++it) {
202
- if (it->is_valid() && it->status() == 0) {
+ bool is_valuable_entry = it->tmp_is_n2_protocol()
203
+ ? (it->status() == 0 && !it->data().empty())
204
+ : (it->is_valid() && it->status() == 0);
205
+ if (is_valuable_entry) {
206
entry = *it;
207
return true;
208
}
0 commit comments