summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-10-14 05:26:36 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2018-10-14 05:26:36 +0900
commita2c124306fa92a22e53a51c0aa177aadc2eae5f6 (patch)
treebf307bd333db8701e208d6670bf988bc5cf9f7fd /src/client
parentFix bug (diff)
downloadsharkey-a2c124306fa92a22e53a51c0aa177aadc2eae5f6.tar.gz
sharkey-a2c124306fa92a22e53a51c0aa177aadc2eae5f6.tar.bz2
sharkey-a2c124306fa92a22e53a51c0aa177aadc2eae5f6.zip
Update mios.ts
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/mios.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/mios.ts b/src/client/app/mios.ts
index abbd23e3d4..76cebcabb5 100644
--- a/src/client/app/mios.ts
+++ b/src/client/app/mios.ts
@@ -443,7 +443,7 @@ export default class MiOS extends EventEmitter {
};
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) {
const id = Math.random().toString().substr(2, 8);