aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-examples/src/main/java/com/ardor3d
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2014-02-11 20:48:23 +0100
committerJulien Gouesse <[email protected]>2014-02-11 20:48:23 +0100
commit4e9076e06e45a8b8e68019a7e825bb02c6a4de2c (patch)
tree954c318db50b428268bf7c7d67e916474025ab5f /ardor3d-examples/src/main/java/com/ardor3d
parent5e5b7b6f5142c2a05df10c5a88e9df56ed411545 (diff)
Exits even though the cleanup has just failed in ExampleBase
Diffstat (limited to 'ardor3d-examples/src/main/java/com/ardor3d')
-rw-r--r--ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java b/ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java
index 30ca4dd..5526e2d 100644
--- a/ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java
+++ b/ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java
@@ -152,12 +152,14 @@ public abstract class ExampleBase implements Runnable, Updater, Scene {
cr.makeCurrentContext();
quit(cr.getRenderer());
cr.releaseCurrentContext();
- if (QUIT_VM_ON_EXIT) {
- System.exit(0);
- }
} catch (final Throwable t) {
System.err.println("Throwable caught in MainThread - exiting");
t.printStackTrace(System.err);
+ } finally {
+ // quit even though the cleanup has just failed
+ if (QUIT_VM_ON_EXIT) {
+ System.exit(0);
+ }
}
}