Liu Song’s Projects


~/Projects/esptool-js

git clone https://code.lsong.org/esptool-js

Commit

Commit
9c9cfa5d6c307cd989d320486a690bb3b8ed4649
Author
Paul Kendall <[email protected]>
Date
2022-07-13 10:14:58 +1200 +1200
Diffstat
 webserial.js | 6 +-----

Fixed previous commit


diff --git a/webserial.js b/webserial.js
index 2d3aeb6f8bbff760d09fb4dcb7657e5db059009f..87551bf0756bee17b81accddc46b578bfeb5b05d 100644
--- a/webserial.js
+++ b/webserial.js
@@ -1,6 +1,6 @@
 'use strict';
-
 import { TimeoutError } from "./error";
+'use strict';
 
 class Transport {
     constructor(device) {
@@ -180,10 +180,6 @@         this.left_over = new Uint8Array(0);
     }
 
     disconnect = async () => {
-        if (this.reader !== null) {
-            this.reader.cancel();
-            this.reader.releaseLock();
-        }
         await this.device.close();
     }
 }