fix assert in dht::observer

This is was introduced by c2277b3ea5
"fix traversal_algorithm::done() being invoked more than once".
This commit is contained in:
Steven Siloti 2015-11-14 18:30:42 -08:00
parent 64aba31e30
commit ba1ccdec66
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ void traversal_algorithm::done()
, end(m_results.end()); i != end; ++i)
{
boost::intrusive_ptr<observer> o = *i;
if (o->flags & observer::flag_queried)
if ((o->flags & (observer::flag_queried | observer::flag_failed)) == observer::flag_queried)
{
// set the done flag on any outstanding queries to prevent them from
// calling finished() or failed() after we've already declared the traversal