mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
bug 1523104: remote: add missing Connection.close method called from TargetListener.close; r=ato
This commit is contained in:
parent
c8bc5eb7c0
commit
5e4abd9576
@ -61,6 +61,10 @@ class Connection {
|
||||
}
|
||||
}
|
||||
|
||||
close() {
|
||||
this.transport.close();
|
||||
}
|
||||
|
||||
onClosed(status) {}
|
||||
|
||||
toString() {
|
||||
|
@ -42,6 +42,9 @@ WebSocketDebuggerTransport.prototype = {
|
||||
},
|
||||
|
||||
close() {
|
||||
if (!this.socket) {
|
||||
return;
|
||||
}
|
||||
this.emit("close");
|
||||
this.active = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user