Merge pull request #2417 from jdf/master

Make it possible for PApplet subclasses to override exitActual.
This commit is contained in:
codeanticode
2014-04-01 15:37:05 -04:00
+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) {