Fixed doStop() to call super before interrupting the reference queue thread.
This commit is contained in:
parent
9dbd2cd9d8
commit
7be9f0d7a4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue