Skip to content

Commit

Permalink
Update manager.go
Browse files Browse the repository at this point in the history
fmt
  • Loading branch information
ziflex authored Feb 10, 2022
1 parent 290aadb commit 3162168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/drivers/cdp/network/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,10 @@ func (m *Manager) WaitForNavigation(ctx context.Context, opts WaitEventOptions)
}

defer stream.Close(ctx)

ctx, cancel := context.WithCancel(ctx)
defer cancel()

for evt := range stream.Read(ctx) {
if err := ctx.Err(); err != nil {
return err
Expand Down

0 comments on commit 3162168

Please sign in to comment.