bug 1523104: remote: rename TargetListener.connected to listening; r=ato
authorAlexandre Poirot <poirot.alex@gmail.com>
Mon, 04 Mar 2019 09:44:18 -0800
changeset 524112 2bb69a9505ba13d1ffc45c13d4f0b14b4104343e
parent 524111 8a8c0dcb9486f4ae38ad683c43de21210b4233a6
child 524113 6a8bdb28bc820eeca20ae65ab067ea7565743efb
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1523104
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1523104: remote: rename TargetListener.connected to listening; r=ato
remote/TargetListener.jsm
--- a/remote/TargetListener.jsm
+++ b/remote/TargetListener.jsm
@@ -22,17 +22,17 @@ const {SocketListener} = ChromeUtils.imp
 class TargetListener {
   constructor(target) {
     this.target = target;
     this.listener = null;
     this.sessions = new Map();
     this.nextConnID = 0;
   }
 
-  get connected() {
+  get listening() {
     return !!this.listener && this.listener.listening;
   }
 
   listen() {
     if (this.listener) {
       return;
     }
 
@@ -55,19 +55,19 @@ class TargetListener {
 
   onConnectionAccepted(transport, listener) {
     const conn = new Connection(this.nextConnID++, transport, listener);
     transport.ready();
     this.sessions.set(conn, new Session(conn, this.target));
   }
 
   get url() {
-    if (this.connected) {
+    if (this.listening) {
       const {network, host, port} = this.listener;
       return `${network}://${host}:${port}/`;
     }
     return null;
   }
 
   toString() {
-    return `[object Debugger ${this.url || "disconnected"}]`;
+    return `[object TargetListener ${this.url || "disconnected"}]`;
   }
 }