From 4bd8015e74aaf6ef3b6c9b61acd2c266449ef556 Mon Sep 17 00:00:00 2001 From: Tomas Chmelevskij Date: Sun, 27 Aug 2023 19:00:38 +0300 Subject: [PATCH] chore: remove listener todo --- src/js/webSerial.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/js/webSerial.js b/src/js/webSerial.js index de3591f446d..90fa6772921 100644 --- a/src/js/webSerial.js +++ b/src/js/webSerial.js @@ -111,8 +111,6 @@ class WebSerial extends EventTarget { if (this.port) { this.transmitting = false; - // TODO: how to remove listeners? Would it just be better to destroy the instance? - if (this.writer) { await this.writer.close(); this.writer = null;