mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #2417 from jdf/master
Make it possible for PApplet subclasses to override exitActual.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user