chore(extension): explicitly detach from debugger when connection closes (#847)
This commit is contained in:
@@ -79,6 +79,7 @@ export class RelayConnection {
|
|||||||
this._closed = true;
|
this._closed = true;
|
||||||
chrome.debugger.onEvent.removeListener(this._eventListener);
|
chrome.debugger.onEvent.removeListener(this._eventListener);
|
||||||
chrome.debugger.onDetach.removeListener(this._detachListener);
|
chrome.debugger.onDetach.removeListener(this._detachListener);
|
||||||
|
chrome.debugger.detach(this._debuggee).catch(() => {});
|
||||||
this.onclose?.();
|
this.onclose?.();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user