We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98eb1a9 commit a05c672Copy full SHA for a05c672
app/src/processing/app/Editor.java
@@ -137,7 +137,7 @@ public boolean apply(Sketch sketch) {
137
138
private static JMenu portMenu;
139
140
- static AbstractMonitor serialMonitor;
+ static volatile AbstractMonitor serialMonitor;
141
142
final EditorHeader header;
143
EditorStatus status;
@@ -2487,6 +2487,7 @@ public void handleSerial() {
2487
// The serial monitor already exists
2488
2489
if (serialMonitor.isClosed()) {
2490
+ serialMonitor.dispose();
2491
// If it's closed, clear the refrence to the existing
2492
// monitor and create a new one
2493
serialMonitor = null;
0 commit comments