Merge pull request #2043 from evhan55/bug/extensions-device-scan
Device scan discovery fix
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user