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.
2 parents 31a5ed4 + e8903a8 commit 29d8272Copy full SHA for 29d8272
app/src/processing/app/Base.java
@@ -251,7 +251,16 @@ static private void createAndShowGUI(String[] args) {
251
252
// long t2 = System.currentTimeMillis();
253
254
- if (DEBUG || !SingleInstance.alreadyRunning(args)) {
+ // boolean flag indicating whether to create new server instance or not
255
+ boolean createNewInstance = DEBUG || !SingleInstance.alreadyRunning(args);
256
+
257
+ // free up resources by terminating the JVM
258
+ if(!createNewInstance){
259
+ System.exit(0);
260
+ return;
261
+ }
262
263
+ if (createNewInstance) {
264
// Set the look and feel before opening the window
265
try {
266
Platform.setLookAndFeel();
0 commit comments