mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
Fix SerialMonitor reopen on reconnect
This commit is contained in:
parent
9a63965904
commit
b7a6d93d0a
@ -80,7 +80,7 @@ public abstract class AbstractMonitor extends JFrame implements ActionListener {
|
|||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent ae) {
|
public void actionPerformed(ActionEvent ae) {
|
||||||
try {
|
try {
|
||||||
if (!Base.getDiscoveryManager().discovery().contains(boardPort)) {
|
if (Base.getDiscoveryManager().find(boardPort.getAddress()) == null) {
|
||||||
if (!closed) {
|
if (!closed) {
|
||||||
suspend();
|
suspend();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user