From afce7f1f5988edbf0766fe7c1829a9131c1d8999 Mon Sep 17 00:00:00 2001 From: Adrien Leravat Date: Sun, 4 Dec 2022 16:24:11 -0800 Subject: [PATCH] Fix main loop blocked waiting on error --- cmd/crowlet/crowlet.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/crowlet/crowlet.go b/cmd/crowlet/crowlet.go index 3b7c4ed..68d489e 100644 --- a/cmd/crowlet/crowlet.go +++ b/cmd/crowlet/crowlet.go @@ -201,6 +201,8 @@ func runMainLoop(urls []string, config crawler.CrawlConfig, iterations int, fore select { case <-quit: return + default: + // Don't block main loop } }