Improve performance slightly

This commit is contained in:
raldone01
2025-07-05 19:42:44 +02:00
parent eef5b92c9b
commit 28ded62c1c
5 changed files with 363 additions and 177 deletions

View File

@@ -191,6 +191,7 @@ class WebUsbSerialPort {
async disconnect() {
this.isConnected = false;
await this._waitForReadLoopToFinish();
if (!this.device.opened) return;
try {
await this.device.controlTransferOut({
requestType: 'class',