fix: 修复串口销毁时dispose方法执行异常

This commit is contained in:
王立帮
2025-05-08 23:59:40 +08:00
parent 90887c7b65
commit 63ba2b0d9b

View File

@@ -195,7 +195,7 @@ export default class Serial extends EventsBase {
async dispose() {
await this.close();
this.reset();
super.dispose();
this.#serialport_ = null;
this.#parserBytes_ = null;
this.#parserLine_ = null;