Revert the previous commit (sorry!)

This commit is contained in:
Trustin Lee 2013-02-09 12:21:30 +09:00
parent ea6113d7fb
commit 4df737864e

View File

@ -131,6 +131,8 @@ public final class ResourceLeakDetector<T> {
break;
}
ref.clear();
if (!ref.close()) {
continue;
}
@ -172,7 +174,6 @@ public final class ResourceLeakDetector<T> {
@Override
public boolean close() {
clear();
if (freed.compareAndSet(false, true)) {
synchronized (head) {
active --;