From 0badf374064da5c608dcb06ef2d2e9966792ddc8 Mon Sep 17 00:00:00 2001 From: jada Date: Thu, 20 Jan 2005 18:34:07 +0000 Subject: 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 --- src/java/net/java/games/joal/ALCImpl.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/java') 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) { -- cgit v1.2.3