Adding TODOs.

This commit is contained in:
Evelyn Eastmond 2019-01-16 16:08:15 -05:00
parent 5c885911e7
commit e1e8e57403
2 changed files with 2 additions and 0 deletions

View file

@ -200,6 +200,7 @@ class BLE extends JSONRPCWebSocket {
if (!this._connected) return; if (!this._connected) return;
// TODO: Fix branching by splitting up cleanup/disconnect in extension
if (this._disconnectCallback) { if (this._disconnectCallback) {
this._disconnectCallback(); // must call disconnect() this._disconnectCallback(); // must call disconnect()
} else { } else {

View file

@ -143,6 +143,7 @@ class BT extends JSONRPCWebSocket {
if (!this._connected) return; if (!this._connected) return;
// TODO: Fix branching by splitting up cleanup/disconnect in extension
if (this._disconnectCallback) { if (this._disconnectCallback) {
this._disconnectCallback(); // must call disconnect() this._disconnectCallback(); // must call disconnect()
} else { } else {