Update mios.ts

This commit is contained in:
syuilo 2018-10-14 05:26:36 +09:00
parent 273f67e268
commit a2c124306f
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ export default class MiOS extends EventEmitter {
}; };
const promise = new Promise((resolve, reject) => { const promise = new Promise((resolve, reject) => {
const viaStream = this.stream && this.store.state.device.apiViaStream && !forceFetch; const viaStream = this.stream && this.stream.state == 'connected' && this.store.state.device.apiViaStream && !forceFetch;
if (viaStream) { if (viaStream) {
const id = Math.random().toString().substr(2, 8); const id = Math.random().toString().substr(2, 8);