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 521114 2bb69a9505ba
parent 521113 8a8c0dcb9486
child 521115 6a8bdb28bc82
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [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"}]`;
   }
 }