Skip to content

Commit

Permalink
Add force browser to stop waiting for debugger
Browse files Browse the repository at this point in the history
When Browser doesn't want a target to be attached, Connection tells the
browser to stop waiting for debugger. This prevents the browser from
indefinitely waiting for a target (that we don't want) to be attached.
  • Loading branch information
inancgumus committed Feb 20, 2024
1 parent 669309f commit 87aa32f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ func (c *Connection) recvLoop() {
// if a session should be created for the target.
ok := c.onTargetAttachedToTarget(sid, eva)
if !ok {
c.stopWaitingForDebugger(sid)
continue
}
}
Expand Down

0 comments on commit 87aa32f

Please sign in to comment.