Status error when LeakResult.Error != ""

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2025-10-02 16:39:04 +02:00
parent e12e3e6e1b
commit 4274c275b0

View File

@@ -111,7 +111,11 @@ func Search(s *server.Server, q Query, r *Result, mu *sync.RWMutex) {
wg.Wait() wg.Wait()
mu.Lock() mu.Lock()
if r.LeakResult.Error != "" {
r.Status = "error"
} else {
r.Status = "completed" r.Status = "completed"
}
mu.Unlock() mu.Unlock()
} }