зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1492700 - Remove unused observables in commands/track-devices;r=daisuke
Depends on D13474 Differential Revision: https://phabricator.services.mozilla.com/D13475 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7e3924ecbf
Коммит
77a80c888c
|
@ -9,7 +9,6 @@
|
|||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { dumpn } = require("devtools/shared/DevToolsUtils");
|
||||
const { setTimeout } = require("resource://gre/modules/Timer.jsm");
|
||||
const { Services } = require("resource://gre/modules/Services.jsm");
|
||||
|
||||
const { ADB } = require("../adb");
|
||||
const client = require("../adb-client");
|
||||
|
@ -43,14 +42,12 @@ class TrackDevicesCommand extends EventEmitter {
|
|||
|
||||
_onOpen() {
|
||||
dumpn("trackDevices onopen");
|
||||
Services.obs.notifyObservers(null, "adb-track-devices-start");
|
||||
const req = client.createRequest("host:track-devices");
|
||||
this._socket.send(req);
|
||||
}
|
||||
|
||||
_onError(event) {
|
||||
dumpn("trackDevices onerror: " + event);
|
||||
Services.obs.notifyObservers(null, "adb-track-devices-stop");
|
||||
}
|
||||
|
||||
_onClose() {
|
||||
|
@ -62,8 +59,6 @@ class TrackDevicesCommand extends EventEmitter {
|
|||
this.emit("device-disconnected", dev);
|
||||
}
|
||||
|
||||
Services.obs.notifyObservers(null, "adb-track-devices-stop");
|
||||
|
||||
// When we lose connection to the server,
|
||||
// and the adb is still on, we most likely got our server killed
|
||||
// by local adb. So we do try to reconnect to it.
|
||||
|
|
Загрузка…
Ссылка в новой задаче