Fixed previous commit

This commit is contained in:
Paul Kendall 2022-07-13 10:14:58 +12:00
parent 6edfe432f8
commit 9c9cfa5d6c

View File

@ -1,6 +1,4 @@
'use strict';
import { TimeoutError } from "./error";
import { TimeoutError } from "./error.js";
class Transport {
constructor(device) {
@ -180,10 +178,6 @@ class Transport {
}
disconnect = async () => {
if (this.reader !== null) {
this.reader.cancel();
this.reader.releaseLock();
}
await this.device.close();
}
}