]> git.saurik.com Git - apt.git/blobdiff - methods/server.cc
Get rid of the old buildsystem
[apt.git] / methods / server.cc
index 4611433881a4959b3da109ce1e4d2cc2cc00c83c..6d147fe129ccc61ed0e51fa8841de5dd62eca15a 100644 (file)
@@ -427,6 +427,8 @@ bool ServerMethod::Fetch(FetchItem *)
    decltype(PipelineDepth) CurrentDepth = 0;
    for (FetchItem const *I = Queue; I != QueueBack; I = I->Next)
       ++CurrentDepth;
+   if (CurrentDepth > AllowedDepth)
+      return true;
 
    do {
       // Make sure we stick with the same server