Skip to content

Commit

Permalink
Fix endless loop in getstate when votes are present
Browse files Browse the repository at this point in the history
  • Loading branch information
revflash committed Mar 30, 2016
1 parent f49dddb commit ff89629
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/app/database_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,10 @@ vector<comment_vote_object> database_api::get_active_votes( comment_id_type cid
const auto& idx = my->_db.get_index_type<comment_vote_index>().indices().get< by_comment_voter >();
auto itr = idx.lower_bound( cid );
while( itr != idx.end() && itr->comment == cid )
{
result.push_back(*itr);
++itr;
}
return result;
}

Expand Down

0 comments on commit ff89629

Please sign in to comment.