Make it possible for PApplet subclasses to override exitActual.

This commit is contained in:
Jonathan Feinberg
2014-04-01 15:25:11 -04:00
parent 4f1d4914ef
commit d52184fc09
+6 -2
View File
@@ -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) {