From ec12bb9f6524740d961fa37397af213d2a466fc1 Mon Sep 17 00:00:00 2001 From: 0x123456789 <0x123456789> Date: Fri, 22 Sep 2023 20:43:34 +0300 Subject: [PATCH] fix bug with missing results --- pkg/engine/common/base.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/engine/common/base.go b/pkg/engine/common/base.go index d9c9a0ed..7dfaad48 100644 --- a/pkg/engine/common/base.go +++ b/pkg/engine/common/base.go @@ -76,7 +76,10 @@ func (s *Shared) Enqueue(queue *queue.Queue, navigationRequests ...*navigation.R } continue } - + // They will be not printed in main loop because we don't push them to queue + if nr.Depth == s.Options.Options.MaxDepth { + s.Output(nr, nil, nil) + } // Do not add to crawl queue if max items are reached if nr.Depth >= s.Options.Options.MaxDepth { continue