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

Device scan discovery fix
This commit is contained in:
Evelyn Eastmond authored and GitHub committed 2019-03-13 19:39:07 -04:00
commit 7d7193cb29
2 files changed
+2 -2

No files matched your search

+1 -1
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;
+1 -1
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;