Revert the previous commit (sorry!)
This commit is contained in:
parent
ea6113d7fb
commit
4df737864e
@ -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 --;
|
||||
|
Loading…
Reference in New Issue
Block a user