bug 1523104: remote: add missing Connection.close method called from TargetListener.close; r=ato

This commit is contained in:
Alexandre Poirot 2019-02-14 01:20:20 -08:00 committed by Andreas Tolfsen
parent c8bc5eb7c0
commit 5e4abd9576
2 changed files with 7 additions and 0 deletions

View File

@ -61,6 +61,10 @@ class Connection {
}
}
close() {
this.transport.close();
}
onClosed(status) {}
toString() {

View File

@ -42,6 +42,9 @@ WebSocketDebuggerTransport.prototype = {
},
close() {
if (!this.socket) {
return;
}
this.emit("close");
this.active = false;