X-Git-Url: http://dolda2000.com/gitweb/?p=jsvc.git;a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2FThreadContext.java;fp=src%2Fdolda%2Fjsvc%2FThreadContext.java;h=b6d9677a049b65e8e12f33d4b1e683b8d57efec1;hp=d0e32fd67a50ce688601ed540d3fc6a6a9bfa602;hb=b9089d950e376b3f48c63e69c72a32d4efeba7b0;hpb=ecbf37771d3f59836e5930caf5f1b2665478eb92 diff --git a/src/dolda/jsvc/ThreadContext.java b/src/dolda/jsvc/ThreadContext.java index d0e32fd..b6d9677 100644 --- a/src/dolda/jsvc/ThreadContext.java +++ b/src/dolda/jsvc/ThreadContext.java @@ -72,7 +72,10 @@ public class ThreadContext extends ThreadGroup { if(st.st == "killed") logger.log(Level.WARNING, "Thread " + rt + " refused to die; killing again"); if(now - st.lastkill > 5000) { - rt.stop(); + if(forcelimit) + rt.stop(); + else + rt.interrupt(); st.st = "killed"; st.lastkill = now; } else {