stab in the dark at hudson's jvm crashing

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1080732 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-03-11 19:24:58 +00:00
parent 0d171c4642
commit f047d92429
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ public abstract class LuceneTestCase extends Assert {
// try to stop the thread:
t.setUncaughtExceptionHandler(null);
Thread.setDefaultUncaughtExceptionHandler(null);
t.interrupt();
if (!t.getName().equals("main-EventThread")) t.interrupt();
try {
t.join(THREAD_STOP_GRACE_MSEC);
} catch (InterruptedException e) { e.printStackTrace(); }