Missing reader.cancel() call.

This commit is contained in:
2024-10-05 15:25:59 +02:00
parent 6272dbf38a
commit 4f5fb3daa8

View File

@@ -40,6 +40,7 @@ class ModbusRTUMaster {
console.log('Disconnect requested');
try {
if (this.reader) {
await this.reader.cancel();
await this.reader.releaseLock();
this.reader = null;
}