Skip to content

Commit a59b7d7

Browse files
committed
Abort when already connected
1 parent 25badda commit a59b7d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/js/serial_backend.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ function onOpen(openInfo) {
331331
}
332332
});
333333
} else {
334+
if (!serial.connected) {
335+
GUI.timeout_remove("connecting"); // kill connecting timer
336+
abortConnection();
337+
return;
338+
}
339+
334340
const dialog = $(".dialogConnectWarning")[0];
335341

336342
$(".dialogConnectWarning-content").html(

0 commit comments

Comments
 (0)