diff options
Diffstat (limited to 'Swift/Controllers/DiscoServiceWalker.cpp')
-rw-r--r-- | Swift/Controllers/DiscoServiceWalker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/Controllers/DiscoServiceWalker.cpp b/Swift/Controllers/DiscoServiceWalker.cpp index 505acb4..15d2aaa 100644 --- a/Swift/Controllers/DiscoServiceWalker.cpp +++ b/Swift/Controllers/DiscoServiceWalker.cpp @@ -141,10 +141,12 @@ void DiscoServiceWalker::markNodeCompleted(const JID& jid) { servicesBeingSearched_.erase(jid); /* All results are in */ if (servicesBeingSearched_.size() == 0) { + active_ = false; onWalkComplete(); } /* Check if we're on a rampage */ - if (searchedServices_.size() >= maxSteps_) { + else if (searchedServices_.size() >= maxSteps_) { + active_ = false; onWalkComplete(); } } |