Skip to content

Commit

Permalink
Fix main loop blocked waiting on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixep committed Dec 5, 2022
1 parent 5b9d828 commit afce7f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/crowlet/crowlet.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ func runMainLoop(urls []string, config crawler.CrawlConfig, iterations int, fore
select {
case <-quit:
return
default:
// Don't block main loop
}
}

Expand Down

0 comments on commit afce7f1

Please sign in to comment.