diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index aef2bcdb8..d018b69b2 100644 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -2442,13 +2442,14 @@ public class Editor extends JFrame implements RunnerListener { } } try { - if (serialMonitor != null) - serialMonitor.resume(boardPort); - if (boardPort == null) { - serialMonitor.close(); - handleSerial(); - } else { + if (serialMonitor != null) { serialMonitor.resume(boardPort); + if (boardPort == null) { + serialMonitor.close(); + handleSerial(); + } else { + serialMonitor.resume(boardPort); + } } } catch (Exception e) { statusError(e);