Use CLI 0.11.0.

- LS does not work,
 - Cannot reconnect to the daemon on browser refresh.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-07-17 16:23:45 +02:00
parent 20f44fe072
commit cfde197198
2 changed files with 6 additions and 4 deletions

View File

@ -10,7 +10,7 @@
(() => { (() => {
const DEFAULT_VERSION = '0.11.0-rc1-62-g72c9655f'; // require('moment')().format('YYYYMMDD'); const DEFAULT_VERSION = '0.11.0'; // require('moment')().format('YYYYMMDD');
const path = require('path'); const path = require('path');
const shell = require('shelljs'); const shell = require('shelljs');

View File

@ -166,9 +166,11 @@ export class ArduinoDaemonImpl implements ArduinoDaemon, BackendApplicationContr
if (error) { if (error) {
ready.reject(error); ready.reject(error);
} }
if (message.includes('Daemon is now listening on 127.0.0.1')) { for (const expected of ['Daemon is listening on TCP port', 'Daemon is now listening on 127.0.0.1']) {
grpcServerIsReady = true; if (message.includes(expected)) {
ready.resolve(daemon); grpcServerIsReady = true;
ready.resolve(daemon);
}
} }
} }
}); });