Bug 1469054 - Add async annotation for adb.start(). r?jdescottes
MozReview-Commit-ID: 534q7l33l7o
--- a/devtools/shared/adb/adb.js
+++ b/devtools/shared/adb/adb.js
@@ -46,17 +46,17 @@ const ADB = {
return this._adbFilePromise;
}
this._adbFilePromise = getFileForBinary();
return this._adbFilePromise;
},
// We startup by launching adb in server mode, and setting
// the tcp socket preference to |true|
- start() {
+ async start() {
return new Promise(async (resolve, reject) => {
const onSuccessfulStart = () => {
Services.obs.notifyObservers(null, "adb-ready");
this.ready = true;
resolve();
};
const isAdbRunning = await check();