diff --git a/lib/cdp/client.go b/lib/cdp/client.go index b6e9c44f..44eff57d 100644 --- a/lib/cdp/client.go +++ b/lib/cdp/client.go @@ -59,9 +59,10 @@ type Client struct { // New creates a cdp connection, all messages from Client.Event must be received or they will block the client. func New() *Client { return &Client{ - ctx: context.Background(), - event: make(chan *Event), - logger: defaults.CDP, + ctx: context.Background(), + event: make(chan *Event), + pending: &sync.Map{}, + logger: defaults.CDP, } }