summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--methods/server.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/methods/server.cc b/methods/server.cc
index 461143388..6d147fe12 100644
--- a/methods/server.cc
+++ b/methods/server.cc
@@ -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