Fix crash running tests
This commit is contained in:
parent
33636a513e
commit
0858018977
2 changed files with 6 additions and 4 deletions
2
docs
2
docs
|
|
@ -1 +1 @@
|
|||
Subproject commit 71ed2984b71d57cab13cdf12074cff150edc1d3d
|
||||
Subproject commit b893895d05b4f0d448aabd4f1d2112a7e35e1354
|
||||
|
|
@ -73,9 +73,11 @@ void required_approval_index::remove( account_id_type a, proposal_id_type p )
|
|||
{
|
||||
auto itr = _account_to_proposals.find(a);
|
||||
if( itr != _account_to_proposals.end() )
|
||||
itr->second.erase(p);
|
||||
if( itr->second.size() == 0 )
|
||||
_account_to_proposals.erase(itr);
|
||||
{
|
||||
itr->second.erase( p );
|
||||
if( itr->second.empty() )
|
||||
_account_to_proposals.erase( itr->first );
|
||||
}
|
||||
}
|
||||
|
||||
void required_approval_index::object_removed( const object& obj )
|
||||
|
|
|
|||
Loading…
Reference in a new issue