* Uncaught exception handler now set only on render thread instead of entire VM
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7356 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
d6df196a2a
commit
e05c94564f
@ -89,7 +89,8 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna
|
||||
protected void initInThread(){
|
||||
try{
|
||||
if (!JmeSystem.isLowPermissions()){
|
||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
// Enable uncaught exception handler only for current thread
|
||||
Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
public void uncaughtException(Thread thread, Throwable thrown) {
|
||||
listener.handleError("Uncaught exception thrown in "+thread.toString(), thrown);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user