X-Git-Url: http://dolda2000.com/gitweb/?p=jsvc.git;a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2FThreadContext.java;h=486bc91bb268fa5d7e1d5af06d569fd0c48dad00;hp=2d9931e9d35c521d15baaff6da44ef801052d0c2;hb=83f55da4bce455a30c7519c9a74cad30fb395e11;hpb=5d99f865555373dbfcf645841bc56a07c728c977 diff --git a/src/dolda/jsvc/ThreadContext.java b/src/dolda/jsvc/ThreadContext.java index 2d9931e..486bc91 100644 --- a/src/dolda/jsvc/ThreadContext.java +++ b/src/dolda/jsvc/ThreadContext.java @@ -86,9 +86,12 @@ public class ThreadContext extends ThreadGroup { boot.interrupt(); Thread.currentThread().interrupt(); } - if(err[0] != null) + if(err[0] != null) { + destroy(); throw(new RuntimeException(err[0])); + } if(res[0] == null) { + destroy(); logger.log(Level.SEVERE, "No responder returned in spite of no error having happened."); throw(new NullPointerException("No responder returned in spite of no error having happened.")); }