◐ Shell
clean mode source ↗

Terminate JVM of already running instances by AhmedMagedC · Pull Request #1072 · processing/processing4

Resolves #1066

Changes

added System.exit(0)
why?
when new Processing instance opens, a client socket is instantiated and connected to the main server socket (initiated by the main instance), then the main instance handles opening the sketch
but what about the instance that created the socket in the first place? we didn't terminate it's JVM, so it remains consuming resources and doing pretty much nothing

Tests

i validate the changes by trying to locally build multiple instances
everything works as expected, and these instances automatically exits