Skip to content

Commit e7e2bf6

Browse files
author
Sergey Abramkin
committed
continue fix
1 parent 985f6d1 commit e7e2bf6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bindings/cpp/async_result.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ bool async_result<T>::get(T &entry)
199199
{
200200
wait(session::throw_at_get);
201201
for (auto it = m_data->results.begin(); it != m_data->results.end(); ++it) {
202-
if (it->is_valid() && it->status() == 0) {
202+
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) {
203206
entry = *it;
204207
return true;
205208
}

0 commit comments

Comments
 (0)