mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 17:46:32 -04:00
On CDP client disconnect, terminate Env
Protects against a stuck worker. This works even if the worker isn't currently in JS but then enters JS.
This commit is contained in:
@@ -536,6 +536,8 @@ fn dropCdp(self: *Network, link: *CdpLink, err: ?anyerror, notify: bool) void {
|
||||
link.state = .removed;
|
||||
self.cdp_dirty = true;
|
||||
if (notify) {
|
||||
link.cdp.terminateFromNetwork();
|
||||
|
||||
// notify=true means the worker hasn't been told yet — push the
|
||||
// disconnect into the inbox and break it out of curl_multi_poll.
|
||||
// notify=false paths have already woken the worker (close frame
|
||||
|
||||
Reference in New Issue
Block a user