Merge pull request #2043 from evhan55/bug/extensions-device-scan

Device scan discovery fix
This commit is contained in:
Evelyn Eastmond 2019-03-13 19:39:07 -04:00 committed by GitHub
commit 7d7193cb29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ class BLE extends JSONRPCWebSocket {
* Close the websocket.
*/
disconnect () {
if (!this._connected) return;
if (this._ws.readyState !== this._ws.OPEN) return;
this._ws.close();
this._connected = false;

View file

@ -75,7 +75,7 @@ class BT extends JSONRPCWebSocket {
* Close the websocket.
*/
disconnect () {
if (!this._connected) return;
if (this._ws.readyState !== this._ws.OPEN) return;
this._ws.close();
this._connected = false;