From 85ecf4f31fe95e6d2c993ce0b3fd68e1d990854b Mon Sep 17 00:00:00 2001 From: Bob Potter Date: Fri, 7 Dec 2018 17:57:14 -0600 Subject: [PATCH] chromedp: fix SetHandlerByID Don't fall through and return an error if we found a handler with a matching ID. --- chromedp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chromedp.go b/chromedp.go index faddc8b..7c2213a 100644 --- a/chromedp.go +++ b/chromedp.go @@ -239,6 +239,7 @@ func (c *CDP) SetHandlerByID(id string) error { if i, ok := c.handlerMap[id]; ok { c.cur = c.handlers[i] + return nil } return fmt.Errorf("no handler associated with target id %s", id)