Skip to content

Commit

Permalink
chore: remove listener todo
Browse files Browse the repository at this point in the history
  • Loading branch information
chmelevskij committed Aug 27, 2023
1 parent d14b5ce commit 4bd8015
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/js/webSerial.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4bd8015

Please sign in to comment.