ref: a767c4963bdc0c14120d7ebb084ce1fcae2cbe6c
parent: d7e3b19621a191a5e8533b19af2eaa9742d92d74
author: Philip Silva <[email protected]>
date: Sun Jan 23 09:44:30 EST 2022
Check if canceled before trying to render
--- a/browser/website.go
+++ b/browser/website.go
@@ -117,6 +117,9 @@
}
log.Infof("JS pipeline end")
}
+ if f.Ctx().Err() != nil {
+ return
+ }
var countHtmlNodes func(*html.Node) int
countHtmlNodes = func(n *html.Node) (num int) {
num++