Skip to content

Commit 1b777ab

Browse files
committed
close 시 serialPort 가 없는 경우에도 parser 가 있다면 찾는 로직 수정
1 parent 49d9edc commit 1b777ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/connector.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ class Connector {
330330
}
331331
if (this.serialPort) {
332332
this.serialPort.removeAllListeners();
333-
}
334-
if (this.serialPort.parser) {
335-
this.serialPort.parser.removeAllListeners();
333+
if (this.serialPort.parser) {
334+
this.serialPort.parser.removeAllListeners();
335+
}
336336
}
337337
};
338338

0 commit comments

Comments
 (0)