File diff r26828:fa6e2fa4b68c → r26829:f1ebd010c392
src/network/network_content.cpp
Show inline comments
 
@@ -1051,17 +1051,17 @@ void ClientNetworkContentSocketHandler::
 
		if (force_selection) continue;
 

	
 
		/* Nothing depends on us, mark the whole graph as unselected.
 
		 * After that's done run over them once again to test their children
 
		 * to unselect. Don't do it immediately because it'll do exactly what
 
		 * we're doing now. */
 
		for (const ContentInfo *c : parents) {
 
			if (c->state == ContentInfo::AUTOSELECTED) this->Unselect(c->id);
 
		for (const ContentInfo *parent : parents) {
 
			if (parent->state == ContentInfo::AUTOSELECTED) this->Unselect(parent->id);
 
		}
 
		for (const ContentInfo *c : parents) {
 
			this->CheckDependencyState(this->GetContent(c->id));
 
		for (const ContentInfo *parent : parents) {
 
			this->CheckDependencyState(this->GetContent(parent->id));
 
		}
 
	}
 
}
 

	
 
/** Clear all downloaded content information. */
 
void ClientNetworkContentSocketHandler::Clear()