summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjada <[email protected]>2005-01-20 18:34:07 +0000
committerjada <[email protected]>2005-01-20 18:34:07 +0000
commit0badf374064da5c608dcb06ef2d2e9966792ddc8 (patch)
tree76a308c2e61edfd1bd66bdf80efe2779516f4842
parentc43d92899cadf380c5fe89d31863222517fe3b53 (diff)
Fixed issue 6 : Unable to terminate JOAL program with CRTL-C or kill Pid.
git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@95 03bf7f67-59de-4072-a415-9a990d468a3f
-rw-r--r--src/java/net/java/games/joal/ALCImpl.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/java/net/java/games/joal/ALCImpl.java b/src/java/net/java/games/joal/ALCImpl.java
index c689f7d..e6d9d36 100644
--- a/src/java/net/java/games/joal/ALCImpl.java
+++ b/src/java/net/java/games/joal/ALCImpl.java
@@ -41,12 +41,11 @@ final class ALCImpl implements ALC {
ALCImpl() {
System.loadLibrary("joal");
- Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
- public void run() {
- exit();
- }
- }));
-
+ //
+ // Fix to issue 6: Unable to terminate JOAL program with CRTL-C or kill Pid
+ // Shouldn't attempt to cleanup before exit, we will let the native driver
+ // do it.
+ //
}
public Device alcOpenDevice(String deviceName) {