diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index b16bad1b1..18075f106 100755 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -4027,8 +4027,12 @@ public class PApplet extends Applet } } - - void exitActual() { + /** + * Some subclasses (I'm looking at you, processing.py) might wish to do something + * other than actually terminate the JVM. This gives them a chance to do whatever + * they have in mind when cleaning up. + */ + protected void exitActual() { try { System.exit(0); } catch (SecurityException e) {