Fixed doStop() to call super before interrupting the reference queue thread.

This commit is contained in:
Simone Bordet 2014-09-01 21:16:40 +02:00
parent 9dbd2cd9d8
commit 7be9f0d7a4
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ package org.eclipse.jetty.util;
import java.lang.ref.PhantomReference; import java.lang.ref.PhantomReference;
import java.lang.ref.ReferenceQueue; import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ConcurrentMap;
@ -124,8 +125,8 @@ public class LeakDetector<T> extends AbstractLifeCycle implements Runnable
@Override @Override
protected void doStop() throws Exception protected void doStop() throws Exception
{ {
thread.interrupt();
super.doStop(); super.doStop();
thread.interrupt();
} }
@Override @Override