patch:
- fix topping bug where update value also save across states even already closed dialog - fix disconnect may throw error - add machine state payload from tcp socket - add command/sheet api request - add heartbeat message Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
parent
230e2ec342
commit
916e056389
8 changed files with 78 additions and 30 deletions
|
|
@ -136,9 +136,12 @@ export async function executeCmd(command: string) {
|
|||
export async function disconnect() {
|
||||
let instance = getAdbInstance();
|
||||
if (instance) {
|
||||
await instance.close();
|
||||
console.log('close instance');
|
||||
await saveAdbInstance(undefined);
|
||||
try {
|
||||
await instance.close();
|
||||
console.log('close instance');
|
||||
} finally {
|
||||
await saveAdbInstance(undefined);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue