forked from premiere/premiere-libtorrent
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:
parent
64aba31e30
commit
ba1ccdec66
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue