bthrm - fix error during planned disconnect when turning BTHRM off

pull/1392/head
Martin Boonk 2022-02-06 22:02:56 +01:00
parent d347d0a0af
commit d0ca5d38a5
2 changed files with 3 additions and 2 deletions

View File

@ -16,3 +16,4 @@
Disconnect cleanly on exit Disconnect cleanly on exit
0.06: Fix bug if no request waiting time is set 0.06: Fix bug if no request waiting time is set
Fix bug if no connection data was cached Fix bug if no connection data was cached
Fix error during disconnect

View File

@ -489,8 +489,8 @@
if (gatt.connected){ if (gatt.connected){
log("Disconnect with gatt: ", gatt); log("Disconnect with gatt: ", gatt);
gatt.disconnect().then(()=>{ gatt.disconnect().then(()=>{
log("Successful disconnect", e); log("Successful disconnect");
}).catch(()=>{ }).catch((e)=>{
log("Error during disconnect", e); log("Error during disconnect", e);
}); });
} }